fstream open打开中文文件名的文件失败
setlocale(LC_ALL,"Chinese-simplified");
fstream binfile;
binfile.open(_TEXT(szBuffer), ios::binary|ios::in);
setlocale(LC_ALL,"C");
加入上述代码后成功打开
fstream open打开中文文件名的文件失败
setlocale(LC_ALL,"Chinese-simplified");
fstream binfile;
binfile.open(_TEXT(szBuffer), ios::binary|ios::in);
setlocale(LC_ALL,"C");
加入上述代码后成功打开