Saturday, 28 January 2012

How to convert CString to std::wstring or usigned short * c++

CString str = "Hello World";
 wchar_t buffer[255];
 // convert the text
 mbstowcs(buffer,(LPCSTR)str,str.GetLength()+1);

No comments:

Post a Comment