CString类与std::string类相互赋值的方法

通过char*作为中介.

CString->std::string 例子:
CString strMfc=“test“;
std::string strStl;
strStl=strMfc.GetBuffer(0);

std::string->CString   例子:
CString strMfc;
std::string strStl=“test“;
strMfc=strStl.c_str();
原文地址:https://www.cnblogs.com/kenter/p/2030475.html