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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -