CString SValue; char a[10]="woshihao"; SValue=CAZCT(a);//char型字符为窄字节,CString型为宽字节或窄字节,所以要用CAZCT,转化为CString的所要类型