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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -