How to get argv as LPWSTR* and not char** from command line arguments?

  argv, c++, unicode-string

I am writing a small C++ program which gets as input from the program command line, a string to later be passed to another function.

The problem is that this function expects to get a LPWSTR (wchar_t*) type variable, and the regular char** argv is an array of elements from the type of char*.

Is there any way to get the argv variable as a LPWSTR* type?

Thanks

Source: Windows Questions C++

LEAVE A COMMENT