杯具啊,c++读取ini文件老是出错
【pptfiles.ini】[MAIN]PLAYER=C:\ProgramFiles\MicrosoftOffice\OFFICE11\PPTVIEW.EXEPPTFOL...
【pptfiles.ini】
[MAIN]
PLAYER=C:\Program Files\Microsoft Office\OFFICE11\PPTVIEW.EXE
PPTFOLDER=.\
Success=1
VALUE=1000
代码:
char sResult[256];
DWORD iSize=256;
GetPrivateProfileString("MAIN","VALUE","杯具啊",sResult,iSize,"pptfiles.ini");
MessageBox(sResult);
结果不管怎么弄都弹出“杯具啊” 展开
[MAIN]
PLAYER=C:\Program Files\Microsoft Office\OFFICE11\PPTVIEW.EXE
PPTFOLDER=.\
Success=1
VALUE=1000
代码:
char sResult[256];
DWORD iSize=256;
GetPrivateProfileString("MAIN","VALUE","杯具啊",sResult,iSize,"pptfiles.ini");
MessageBox(sResult);
结果不管怎么弄都弹出“杯具啊” 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询