1. 构造一个CString对象
(1) 使用字符串常量
CString str2 (_T("Hello Window!"));
CString str1 = _T("Hello Window!");
(2) 使用字符串数组
TCHAR szBuf[] = _T("Hello Window!");
CString str2(szBuf);
CString str1 = szBuf;
(3)使用指向字符串的指针
TCHAR * pszStr = _T("Hello Window!");
CString str2(pszStr);
CString str1 = pszStr;
(4) 使用CString对象
CString str(_T("Hello Window!"));
CString str2(str);
CString str1 = str;