How to get the command line arguments in MFC applications?

前端 未结 4 1476
迷失自我
迷失自我 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:14

    Yes, see CWinApp:ParseCommandLine. Also take a look at the CCommandLineInfo class.

提交回复
热议问题