CString与string相互转换

CString转string 例子:spa

CString strMfc = "test"; std::string strStr; strStr = strMfc.GetBuffer(0);

string转CString 例子:

CString strMfc; string strStr = "test"; strMfc = strStr.c_str();