读书人

WritePrivateProfileString有关问题

发布时间: 2012-02-23 22:01:36 作者: rapoo

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.

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

读书人网 >C语言

热点推荐