CString转string 例子:
CString strMfc = "test";
std::string strStr;
strStr = strMfc.GetBuffer(0);
string转CString 例子:
CString strMfc;
string strStr = "test";
strMfc = strStr.c_str();
CString转string 例子:
CString strMfc = "test";
std::string strStr;
strStr = strMfc.GetBuffer(0);
CString strMfc;
string strStr = "test";
strMfc = strStr.c_str();