CString转std::wstring
std::wstring str = filename.GetString();
std::wstring转CString
CString str( filename.c_str() );
LPCTSTR str;
std::wstring cs = (LPCTSTR)str;
str = cs.c_str();
CString转std::wstring
std::wstring str = filename.GetString();
std::wstring转CString
CString str( filename.c_str() );
LPCTSTR str;
std::wstring cs = (LPCTSTR)str;
str = cs.c_str();