首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

WritePrivateProfileString有关问题

2012-02-23 
WritePrivateProfileString问题如果指定路径下没有要写入的文件,该函数是不是会自动产生一个对应的文件呢?

WritePrivateProfileString问题
如果指定路径下没有要写入的文件,该函数是不是会自动产生一个对应的文件呢?

[解决办法]
会的!
确定会
!
[解决办法]
Return Values
If the function successfully copies the string to the initialization file, the return value is nonzero.

If the function fails, or if it flushes the cached version of the most recently accessed initialization file, the return value is zero. To get extended error information, call GetLastError.

不会的,如果写入不成功,会有错误返回。

热点排行
Bad Request.