char buf[100];
CString Str_Name = "test";
USES_CONVERSION;
strcpy(buf,W2A(Str_Name));
std::string std_Name = buf;
char buf[100];
CString Str_Name = "test";
USES_CONVERSION;
strcpy(buf,W2A(Str_Name));
std::string std_Name = buf;
转载于:https://www.cnblogs.com/Dtor/archive/2006/07/21/456560.html