::GetCommandLine();将获取到 "C:\test\app.exe" -1 -2
for (int i=0;i<__argc;i++)
{
__targv[i];
//将依次得到C:\test\app.exe -1 -2
}
AfxGetApp()->m_lpCmdLine;将获取到 -1 -2
::GetCommandLine();将获取到 "C:\test\app.exe" -1 -2
for (int i=0;i<__argc;i++)
{
__targv[i];
//将依次得到C:\test\app.exe -1 -2
}
AfxGetApp()->m_lpCmdLine;将获取到 -1 -2