unicode 下 string to CString USES_CONVERSION; TCHAR *pTCH = A2T(str.c_str()); CString strTxt.Format(_T("%s"), pTCH);