WinMain command line arguments

后端 未结 3 1795
太阳男子
太阳男子 2021-01-19 01:22

The 3rd param to WinMain provides the command line as an unprocessed string. While that may be useful for allowing you to cope with expansion of wildcards and what-not, is t

3条回答
  •  孤街浪徒
    2021-01-19 01:28

    You can use CommandLineToArgvW() to convert to an argv-style array of Unicode strings. Unfortunately, there is no ANSI-string version. Also, beware that this does not set argv[argc] (i.e. the element after the last argument) to NULL.

提交回复
热议问题