64,646
社区成员
发帖
与我相关
我的任务
分享
CFile theFile;
bool bRet = theFile.Read("file.htm", CFile::modeRead);
if (bRet)
{
char* szBuf = new char[theFile.Getlength()+1];
theFile.Read(szBuf, theFile.Getlength()+1);
//////////////////////////////////////////
问题来了,如果是unicode的话,这里要用的szBuf要用wchar_t*才行
那么有什么办法可以判断出unicode或者ansi的吗?
谢谢了。在线等
}