I have a std::string. I need to convert this std:string to a Cstring.
std::string
std:string
Cstring
I try to use the .c_str() but it\'s only fo
.c_str()
Use the ATL conversion macros. They work in every case, when you use CString. CString is either MBCS or Unicode... depends on your Compiler Settingss.
std::string str = "string"; CString ss(CA2T(str.c_str());