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()
Bonus: if you use the conversion frequently you can define a macro:
#define STDTOCSTRING(s) CString(s.c_str())
so your code is more readable.