How to get the command line arguments in MFC applications?

前端 未结 4 1395
迷失自我
迷失自我 2021-01-07 17:59

I wish to have a small dialog based application which is passed command line parameters, so, using VC++6 I ran the application wizard and chose an MFC dialog application.

4条回答
  •  一生所求
    2021-01-07 18:22

    In MFC applications, the entry point function is 'initInstance()', like main() or wmain(). Use CWinApp::m_lpCmdLine in initInstance() to access the command line.

提交回复
热议问题