CString to string example:
CString strMfc = "test";
std::string strStr;
strStr = strMfc.GetBuffer(0);
Example of converting string to CString:
CString strMfc;
string strStr = "test";
strMfc = strStr.c_str();
CString to string example:
CString strMfc = "test";
std::string strStr;
strStr = strMfc.GetBuffer(0);
Example of converting string to CString:
CString strMfc;
string strStr = "test";
strMfc = strStr.c_str();