CString和wstring互转

CString转std::wstring

std::wstring str = filename.GetString();

std::wstring转CString

CString str( filename.c_str() );

你可能感兴趣的:(MFC)