MFC读写配置文件
来源:互联网 发布:淘宝买家秀福利怎么找 编辑:程序博客网 时间:2024/05/20 13:19
MFC配置文件都是.ini类型的,下面来举例读写配置文件
1、配置文件名字
drmconfig.ini
2、写配置文件
WritePrivateProfileString(_T("Configuration"), _T("DrmServerAddr"), _T("192.168.6.54"), _T("./drmconfig.ini"));
3、配置文件内容
[Configuration]
DrmServerAddr=192.168.4.294、读配置文件
CString str_drm_addr;
GetPrivateProfileString(_T("Configuration"), _T("DrmServerAddr"), 0, str_drm_addr.GetBuffer(MAX_PATH), MAX_PATH, _T("./drmconfig.ini"));
str_drm_addr.ReleaseBuffer();
0 0
- MFC 读写配置文件
- MFC读写INI配置文件
- MFC读写INI配置文件
- MFC 读写配置文件 ini
- MFC读写配置文件
- 如何在MFC中读写配置文件
- 如何在MFC中读写配置文件?
- 如何在MFC中读写配置文件?
- MFC 读写配置文件——ini文件
- MFC点点滴滴——读写配置文件(转)
- MFC学习笔记——读写配置文件(.ini)和注册表
- MFC读写ini配置文件(WritePrivateProfileString,GetPrivateProfileString,GetPrivateProfileInt)
- 读写配置文件
- 读写配置文件
- 读写配置文件
- 读写配置文件
- 读写配置文件
- 读写配置文件
- hellocharts-android-Android图表开源库的使用(二)
- Android USB转串口通信开发基本流程
- Java 集合 5:HashSet ,TreeSet 实现原理
- iOS打开闪光灯
- W88 Online Casino Malaysia sports Daily Reload(Online Casino Malaysia, sports Daily Reload, w88, W88
- MFC读写配置文件
- 引用对象的使用和易产生bug的示例
- js最新手机号码、电话号码正则表达式
- Ctrl与Caps Lock键(大写键)的交换swap
- php发送短信验证码
- 27. Remove Element
- Echarts导出为pdf格式
- c语言简单实现telnet客户端
- codis安装手册