char[]数组,烫烫烫的问题,VC使用了Unicode。
CFile file;
BOOL bRet = file.Open(strDirt, CFile::modeCreate|CFile::modeWrite);
CString w_strline = TEXT("中国人");
int iLength = w_strline.GetLength();
char szANSIString[255];
int ret = WideCharToMultiByte ( CP_ACP, WC_COMPOSITECHECK,
w_strline, w_strline.GetLength(), szANSIString, sizeof(szANSIString),
NULL, NULL );
file.Write(szANSIString, 255);
可是在写入的文件里,中国人后面有好多好多的“烫”啊
怎么解决?
谢谢