CString cstring ( _T ( "CString::CStringT" )); std :: string str ( "std::string" ); std :: wstring wstr ( _T ( "std::wstring" )); // std::string <-- CString str = std :: string ( CT2CA ( cstring . operator LPCWSTR ())); // std::wstring <-- CString wstr = std :: wstring ( cstring . operator LPCWSTR ()); // CString <-- std::string cstring = CString :: CStringT ( CA2CT ( str . c_str ())); // CString <-- std::wstring cstring = CString :: CStringT ( wstr . c_str ()); // std::string <-- std::wstring str = std :: string ( CT2CA ( wstr . c_str ())); // std::wstring <-- std::string wstr = std :: wstring ( CA2CT ( str . c_str ()));