Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am using FindExecutable of Shell32.dll to find executable for filenames.

When i pass filename having extension of .jpeg. This function return SE_ERR_NOASSOC.

This means "There is no association for the specified file type with an executable file."

On my machine, I have set "MSPaint" as default program to open .jpeg files.

Same thing works correctly for filenames having .jpg, .bmp etc

What I have tried:

C#
[DllImport("shell32.dll")]
static extern IntPtr FindExecutable(string lpFile, string lpDirectory, [Out] StringBuilder lpResult);


Is their any known issue of FindExecutable for files having extension as .jpeg or extension more than 3 characters?
Posted
Updated 14-May-18 6:07am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900