I am using a Windows Dialog to select a file. The output type I receive is a PWSTR
. Whenever I've tried to convert it to char*
, all I get is the first character of the string (ie 'C'
).
For some context, my variable name is pszFilePath
. I have used multiple casting types, like using reinterpret_cast
, static_cast
, and (char*)pszFilePath
. All of which either do not work, or cause an error.