std::string GetStdString(CString cs) { CT2CA pszConvertedAnsiString (cs); // construct a std::string using the LPCSTR input return std::string(pszConvertedAnsiString); }