for API, use either CreateProcess or ShellExecute
Printable View
for API, use either CreateProcess or ShellExecute
ShellExecute is easier
Code:ShellExecute(ghWnd,"OPEM","C:\MyFile.exe",NULL,NULL,TRUE);
Especially if you use OPEN rather than OPEM ;)
You can pass NULL for that parameter and the default action will be used (which may NOT be open ;))