Please accept:
ShellExecute(NULL, "open", "C:\Windows\System32\notepad.exe",NULL, NULL, SW_SHOWNORMAL);
< a target = "_blank" > < span > http://blog.csdn.net/samdy1990/article/details/16919969 < / span > < / a >
0 Answer
Please accept:
ShellExecute(NULL, "open", "C:\Windows\System32\notepad.exe",NULL, NULL, SW_SHOWNORMAL);
< a target = "_blank" > < span > http://blog.csdn.net/samdy1990/article/details/16919969 < / span > < / a >
this article can solve your problem.
Adds a menu item to the menu bar of the MFC application and adds a response function to it, such as OnOpenEXE;
Add the following code to the OnOpenEXE function:
CString strPath;
strPath.Format(_T("C:\Program Files\MyApp\MyApp.exe"));
// Start MyApp.exe
ShellExecute(NULL, _T("open"), strPath, NULL, NULL, SW_SHOW);
这家伙很懒,什么都没留下...