On 06/19/2016 02:23 PM, Hugo wrote:
On Friday, 20 May 2016 at 17:41:22 UTC, Adam D. Ruppe wrote:
[...]
Use GetCommandLine to fetch the original thing the user typed, then
process it yourself.
[...]
Then why doesn't the following code produce the expected output?
[...]
auto wargs = CommandLineToArgvW(GetCommandLineW(), &wargc);
You're calling Windows' CommandLineToArgvW here. I don't think that's
what Adam meant by "process it yourself". If you don't like how
CommandLineToArgvW parses the command line, don't use it.