如题

解决方案 »

  1.   

    前几天的一个帖子
    你去看看吧http://community.csdn.net/Expert/topic/4510/4510155.xml?temp=.7717249
      

  2.   

    http://community.csdn.net/Expert/topic/4517/4517621.xml?temp=.898266
      

  3.   

    BOOL IsDBCSLeadByteEx(
      UINT CodePage,   // identifier of code page
      BYTE TestChar    // byte to test
    );
      

  4.   

    CString str = "a1我3b靠c4"; CString strTemp; for(int i = 0; i < str.GetLength(); i++) { if( (BYTE)str[i] < 0x80 ) //字符 {
    }  
    else {
                         //汉字
    } }或者
    IsDBCSLeadByteEx
      

  5.   

    要么自己用ascii来判断,汉字一个自己大于127