When using shellexecute to launch a new program and send parameters to the program, write the parameters directly, and find that Error_File_Not_Found is always doubts. Later, in accordance with the API of the SHELLEXECUTE in MSDN, use the CHAR type or TCHAR type parameters, you can start the program normally in Shellexecute. The CSTRING class is used as a parameter transmission, and the program cannot be started normally.
SHELLEXECUTE prototypes in MSDN:
Hinstance Shellexecute (HWND HWND, LPCTSTR LPOPERATION, LPCTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTR LPDIRECTORY, INT NSHOWCMD);
In MSDN, there is an article saying shellexecute, http://support.microsoft.com/?kiD = 837633, "Errors in Windows XP Applications That start by using the shellexecute ()".