读取配置文件 C#
来源:互联网 发布:sql导入oracle数据库 编辑:程序博客网 时间:2024/05/16 06:49
函数声明:
[DllImport("kernel32.dll", EntryPoint = "GetPrivateProfileString")]
//[DllImport("kernel32.dll",SetLastError = true)]
public static extern int GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault,StringBuilder lpReturnedString, int nSize, string lpFileName);
调用: StringBuilder str = new StringBuilder();
int i = SendMessage.GetPrivateProfileString("Student", "Name", "", str, 8, "F:\\test.ini");
MessageBox.Show(i.ToString());
MessageBox.Show(str.ToString());
[Student]
Name=Kent
- C#读取XML配置文件
- C#配置文件读取
- C#读取ini配置文件
- C#读取配置文件源代码
- C#读取配置文件详解
- C#读取配置文件详解
- C# 读取ini配置文件
- c# 读取TIniFile配置文件
- C#读取配置文件详解
- 读取配置文件 C#
- C#中读取配置文件
- C#读取XML配置文件
- c#读取配置文件
- C# 读取ini配置文件
- C#读取配置文件
- C# 读取ini配置文件
- C# 读取ini配置文件
- C#读取配置文件信息
- 许一力:通胀下的中国货币政策转向真相
- [Java]读取文件方法大全
- LUA面向对象浅析
- Asp.Net 回调
- AVFoundation总结
- 读取配置文件 C#
- ORA-01552: 非系统表空间 'USERS' 不能使用系统回退段
- 常用网页特效——设为首页、加入收藏
- 理解socket的本质
- WF4.0 入门系列(五)WorkflowApplication
- 设计模式之访问者模式,C++实现
- CONFIG_NR_CPUS num_online_cpus
- P0口上拉电阻选择
- C#和C++混合编程