NelsonChung's blog
邁向偉大的航路
2010年6月10日 星期四
MFC 讀取 command line 參數
撰寫MFC程式
卻要讀取由command line的參數
你可以使用以下方法
首先
找到
InitInstance function
使用
CString strCommand = GetCommandLine();
抓取command
ex. prun a.exe -m -y
就會完整抓出 -m -y
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言