MFC CString to string
CString path=_T("C:/");
string a = string(CW2A(path.GetString()))
一、string转CString
string str = "hello world";
CString cstr(str.c_str());
二、CString转string
CString theCStr = L"Hello C++";
std::string STDStr(CW2A(theCStr.GetString()));