int argn;
LPWSTR s=GetCommandLineW();
LPWSTR *cmdLineAry=CommandLineToArgvW(s,&argn);
if(argn!=1)
{
MessageBox((CString)cmdLineAry[1]);//这就是文件名了。
}原文地址:
http://zhidao.baidu.com/question/180310237.html
int argn;
LPWSTR s=GetCommandLineW();
LPWSTR *cmdLineAry=CommandLineToArgvW(s,&argn);
if(argn!=1)
{
MessageBox((CString)cmdLineAry[1]);//这就是文件名了。
}原文地址:
http://zhidao.baidu.com/question/180310237.html