|
发表于 2020-5-11 12:45:01
|
显示全部楼层
因为使用了UNICODE的关系,修改一下
CFile File;
File.Open(_T("c:\\rxg.txt"),CStdioFile::modeCreate|CStdioFile::modeWrite,NULL);
CStringA str= "姓名";
for (int i=0;i<GetHeaderCtrl()->GetItemCount();i++)
{
File.Write(str,str.GetLength());
File.Write(",",1);
}
File.Write("\n",1);
|
|