CStdioFile file;
file.Open(szDir,CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite);
char* old_locale = _strdup( setlocale(LC_CTYPE,NULL) );
setlocale( LC_CTYPE, "chs" );//设定
//file.WriteString(_T("abc你好"));//正常写入
file.WriteString(curpath);//正常写入
setlocale( LC_CTYPE, old_locale );
free( old_locale );//还原区域设定