![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
文件操作
文章平均质量分 72
Qingqinglanghua
这个作者很懒,什么都没留下…
展开
-
C++读写ini配置文件
配置文件中经常用到ini文件,在VC中其函数分别为:写入.ini文件:BOOL WritePrivateProfileString( LPCTSTR lpAppName, // INI文件中的一个字段名[节名]可以有很多个节名 LPCTSTR lpKeyName, // lpAppName 下的一个键名,也就是里面具体的变量名 LPCTSTR lpString,原创 2009-12-10 21:35:00 · 30994 阅读 · 6 评论 -
SetCurrentDirectory(),GetCurrentDirectory(),GetModuleFileName()的区别
用于设置程序的目录地址,但EXE文件不会放在这个地方 BOOL SetCurrentDirectory( LPCTSTR lpPathName // 程序的目录设置到地址);得到SetCurrentDirectory()设置的位置,如果没有设置则得到的是当前工程的位置DWORD GetCurrentDirectory( DWORD nBufferLength, // 缓冲区大原创 2009-12-11 17:02:00 · 1817 阅读 · 0 评论