新手求教
mfc吧
全部回复
仅看楼主
level 2
黯锏 楼主
WinExec("C:\\WINDOWS\\NOTEPAD.EXE",SW_SHOW);
ShellExecute(NULL,"edit","C:\\WINDOWS\\NOTEPAD.EXE",NULL,NULL,SW_SHOWNORMAL);为什么shell将参数由open改为edit两条语句都没反应??
2014年08月20日 03点08分 1
level 11
C:\WINDOWS目录下没有NOTEPAD.EXE吧?
2014年08月20日 03点08分 2
那个改过来了 不是路径的问题 改成windows目录下还是那样 只要是edit 两个都打不开
2014年08月20日 03点08分
level 11
ShellExecute()中edit参数的说明如下:
Launches an editor and opens the document for editing.
If lpFile is not a document file, the function will fail.
2014年08月20日 03点08分 3
level 11
ShellExecute()返回值说明如下:
Type: HINSTANCE
If the function succeeds, it returns a value greater than 32. If the function fails, it returns an error value that indicates the cause of the failure. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. It can be cast only to an int and compared to either 32 or the following error codes below.
你试下ShellExecute()到底返回了什么。
2014年08月20日 03点08分 4
1