HINSTANCE ShellExecute( HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd );楼主说的第二个null是第几个参数? 第四个吗? 第四个参数的说明: lpParameters If the lpFile parameter specifies an executable file, lpParameters is an address to a null-terminated string that specifies the parameters to be passed to the application. If lpFile specifies a document file, lpParameters should be NULL.
ShellExecute Performs an operation on a specified file. 这个函数是对一个特定的文件进行特定的操作,搂主说的第二个NULL是指lpDirectory他只是描述一个默认的目录而已,怎么可能打开文件?lpDirectory Address of a null-terminated string that specifies the default directory.
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);楼主说的第二个null是第几个参数? 第四个吗?
第四个参数的说明:
lpParameters
If the lpFile parameter specifies an executable file, lpParameters is an address to a null-terminated string that specifies the parameters to be passed to the application.
If lpFile specifies a document file, lpParameters should be NULL.
Performs an operation on a specified file. 这个函数是对一个特定的文件进行特定的操作,搂主说的第二个NULL是指lpDirectory他只是描述一个默认的目录而已,怎么可能打开文件?lpDirectory
Address of a null-terminated string that specifies the default directory.