>These work for me:
>
>? ShellExecute(0,"open","c:\windows\system32\mspaint.exe","D:\software\smlogo.jpg","",1)
>? ShellExecute(0,"open","c:\windows\sysWOW64\mspaint.exe","D:\software\smlogo.jpg","",1)
>
Thank you. This works. Questions:
1. How to open jpg and other files with default file type handler like clicking in file in Windows Explorer ?
2. I right clicked in windows explorer in jpg file and selected
Choose default program
Photo Gallery Viewer
After hat I got error message
Picture printing is not available without the Desktop Experience Feature.
Images are still opened with paint.
How to open images with Photo Gallery Viewer or other windows built in viewer ?
Andrus