Click to See Complete Forum and Search --> : How to open a file use default AP like double click in Windows Explorer ?


GloriaYang
April 27th, 1999, 04:03 AM
Good afternoon , everyone :
Do you know how to open a selected file with default AP when you double click on it ?
Just like Windows Explorer does.Double clicking on .Jpeg file maybe opened with iphoto express or photoshop dependents on system setting ?

Thank you advanced.

Best Regards.
Gloria

Lothar Haensler
April 27th, 1999, 04:20 AM
use the ShellExecute(Ex) API and specify the "open" verb.

GloriaYang
April 27th, 1999, 10:41 PM
Thank you very much.
It works fine.

Gloria

GloriaYang
April 28th, 1999, 12:58 AM
Hello,
May I ask you one more question ?
Is there any prework when I use
ShellExecute with verb "properties".
When I use it,the error message is
ERR_NO_ASSOC.

Thank you in advanced.

Best Regards.
Gloria