惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
博客园 - Franky
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
IT之家
IT之家
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
S
SegmentFault 最新的问题
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
有赞技术团队
有赞技术团队
B
Blog RSS Feed
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 司徒正美
The Cloudflare Blog
博客园_首页
博客园 - 聂微东
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏

博客园 - Richard

使用Expresso学习.net正则表达式 Learning .NET Regular Expressions with Expresso SWOT分析法 Symbian60第二版拍照功能实现 WindowsMobile2003拨号回拨 Windows2003Web权限问题 佣兵天下-看书 以前用过的的一个线程池代码 Symbian60平台开发环境搭建 回归 虚函数,看看吧 sizeof讨厌的东西 C# 下的struct Black Berry 无尽空虚 J2ME下访问.net的webservice C#今天学的知识 急用抄过来不整理了-Access 设置控件输入的输入方式-补充
读取ini配置文件的API
Richard · 2005-06-18 · via 博客园 - Richard

//写INI文件
  [ DllImport ( "kernel32" ) ]
  private static extern bool WritePrivateProfileString ( string section ,string key , string val , string filePath ) ;
  //读ini文件(字符
  [ DllImport ( "kernel32" ) ]
  private static extern int GetPrivateProfileString ( string section ,string key , string def , StringBuilder retVal ,int size , string filePath ) ;

  //读ini文件(数字
  [ DllImport ( "kernel32" ) ]
  private static extern int GetPrivateProfileInt 的( string section ,string key , int def , string filePath ) ;