c++ - Convert CString to std::wstring -


how can convert cstring std::wstring?

to convert cstring std::wstring:

cstring hi("hi"); std::wstring hi2(hi); 

and go other way, use c_str():

std::wstring hi(l"hi"); cstring hi2(hi.c_str()); 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -