判断字符串中是否含有中文

来源:互联网 发布:破解购物卡数据库 编辑:程序博客网 时间:2024/04/30 10:07
CString strTmp = "dzhd:\\\\dzh2\\中文.ui";
for(int i=0; i< strTmp.GetLength(); i++)
{
if(IsDBCSLeadByte(strTmp.GetAt(i)))
{
break;
}
}