只有"s"呢?
==========
正常的,你看下内存监视就知道了,vc不显示unicode字符提示的(只要字符是\0结束就终止显示)试着改一下_T(strTemp)为_T(strTemp.GetBuffer(0))
最好是CString strTitle(strTemp);或CString strTitle = strTemp;

解决方案 »

  1.   

    只有"s"呢?
    ==========
    正常的,你看下内存监视就知道了,vc不显示unicode字符提示的(只要字符是\0结束就终止显示)试着改一下_T(strTemp)为_T(strTemp.GetBuffer(0))
    最好是CString strTitle(strTemp);或CString strTitle = strTemp;
    ============================================================================
    如果照你说的最好的方式写,还支持UNICODE吗?
      

  2.   

    最好用int WideCharToMultiByte(
      UINT CodePage,            // code page
      DWORD dwFlags,            // performance and mapping flags
      LPCWSTR lpWideCharStr,    // wide-character string
      int cchWideChar,          // number of chars in string.
      LPSTR lpMultiByteStr,     // buffer for new string
      int cbMultiByte,          // size of buffer
      LPCSTR lpDefaultChar,     // default for unmappable chars
      LPBOOL lpUsedDefaultChar  // set when default char used
    );
    转换一下