我知道一个很把握的方法,把要显示的字转换成UNICODE,具体你查MSDN里面的UNICODE部分

解决方案 »

  1.   

    WCHAR              *szWTextString = NULL;
        CString MyCstring;
        int nLen;    m_RTE.GetWindowText(MyCstring);
        nLen = MyCstring.GetLength();#ifdef _UNICODE
        szWTextString = new WCHAR[nLen+1];
        wcscpy(szWTextString, MyCstring);
    #else
        nLen = MultiByteToWideChar(CP_ACP, 0, MyCstring, -1, NULL, NULL);
        szWTextString = new WCHAR[nLen];
        MultiByteToWideChar(CP_ACP, 0, MyCstring, -1, (LPWSTR)szWTextString, nLen);
    #endif    AfxMessageBox(szWTextString);//    delete[] szWTextString;