Function CommandLineToArgvW is giving me commandline arguments in LPWSTR type. I need these arguments in string.
Would someone please tell me how to convert LPWSTR to string?
I’m using mingw.
Function CommandLineToArgvW is giving me commandline arguments in LPWSTR type. I need these arguments
Share
Try to use following API functions :
WideCharToMultiByte
wcstombs
And comparision of both methods WideCharToMultiByte() vs. wcstombs()