房子左边有坟墓好不好:急问:用ShellExecute向程序传递一个参数值,在这个调用程序中如何获取这个参数值?

来源:百度文库 编辑:中科新闻网 时间:2024/05/09 12:53:49
等待中……

ShellExecute(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd);
lpParameters的地方就是传递的参数。

接收的应用程序如果是C++开发的话,有一个
int WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
其中lpCmdLine就是参数。