[
技巧]:通过char*作为中介.
CString->std::string 例子:
CString strMfc=“test“;
std::string strStl;
strStl=strMfc.GetBuffer(0);
std::string->CString
例子:
CString strMfc;
std::string strStl=“test“;
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();
http://blog.sina.com.cn/s/blog_52faf8000100c2um.html