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
Post a Comment