Is it possible to use a Unicode “argv”?

后端 未结 6 991
南旧
南旧 2021-02-07 09:48

I\'m writing a little wrapper for an application that uses files as arguments.

The wrapper needs to be in Unicode, so I\'m using wchar_t for the characters and strings I

6条回答
  •  情深已故
    2021-02-07 10:13

    On Windows, you can use GetCommandLineW() and CommandLineToArgvW() to produce an argv-style wchar_t[] array, even if the app is not compiled for Unicode.

提交回复
热议问题