摘要: 在MFC程序中,可以用以下几种方法来获取命令行参数。为方便说明,我们假设执行了命令:C:\test\app.exe -1 -2方法一::GetCommandLine();将获取到 "C:\test\app.exe" -1 -2方法二for (int i=0;i<__argc;i++){__argv[i];将依次得到C:\test\app.exe -1 -2}方法三AfxGetApp()-&g... 阅读全文
posted @ 2009-08-12 14:43 南守拥 阅读(3403) 评论(0) 推荐(0)