c++ - LWPSTR to CONST CHAR* help needed -



c++ - LWPSTR to CONST CHAR* help needed -

i trying convert const char pointer constant wide string pointer. here code.

double ret; const wchar_t* file; file = const wchar_t* (file_old);

i says this: "error, type name not allowed." on const.

any help appreciated!

you need convert contents pointer points wide characters. easiest way set narrow version string , convert using wstring_convert detailed in answer: http://stackoverflow.com/a/18374698/82320

c++

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -