1. CString 转 std::string
char *chr=new char[cstring.GetLength()];
WideCharToMultiByte(CP_ACP,0,cstring.GetBuffer(),-1,chr,cstring.GetLength(),NULL,NULL);
std::string string= chr;
2.std::string 转 CString
CString csting = (CString)string.c_str()