登录社区:用户名: 密码: 忘记密码 网页功能:加入收藏 设为首页 网站搜索  

文档

下载

图书

论坛

安全

源码

硬件

游戏
首页 信息 空间 VB VC Delphi Java Flash 补丁 控件 安全 黑客 电子书 笔记本 手机 MP3 杀毒 QQ群 产品库 分类信息 编程网站
 内容搜索 网页 下载 源代码
最新源码
  为您的应用程序设置热键
  在任务条里隐藏应用程序,..
  读写桌面的theme文件,改变..
  用于管理任何结构的数据列..
  封装了Windows API ExitWi..
  为操作系统注册一个组合键..
  为大的单元提供大的指针,..
  图标工具,读图标和写图标..
  LiveGUID
  用做内存map文件的3个类
  提供系统的详细信息
  可变的动态记录类,以阵列..
热点源码
  RasDial拨号程序
  如何使能/取消Ctrl+Alt+Ca..
  通过串行口的事件驱动串行..
  提供简化的功能的组件
  运用注册表,INI文件,数据..
  如何防止第二个程序执行,..
  演示只通过API如何建立,处..
  从程序中添加/调整/编辑
  将此组件放到form里,程序..
  如何拖动没有边界的窗体
  一个VCL控件,提供时间,N..
  压缩了WDDX SDK COM 库的类
最新招聘信息

您现在的位置:立华软件园->源码中心->Delphi代码->系统控制
具有同时处理窗口注册和运行INI文件的超级类
发表日期:2003-10-10文件大小:20532 下载次数:1462  

源代码说明:
具有同时处理窗口注册和运行INI文件的超级类
In Delphi, you got powerful classes to access both the Windows registry and work with INI-files. But there is still a lot of code needed, to work with these classes. With this component, this becomes much easier. And values from your inifile or registry key are loaded directly into published properties in a predefined class. Just call the Load method, or even more easy, set the LoadOnCreate property to true, and your values are loaded in your published properties at startup of your application. Make changes to your properties and call the Save method (or set SaveOnExit to true) and the values are stored back to registry rsp. inifile. All you need to do is define a new class derived from TApplValues and define published properties in this class. Now, in the values property of the component, define for each published property a location where to store the value (section, subkey, default value if key does not exist etc.). For the rest, one single line of code is needed:
MyValues := TMyValues.create (Self,AP) ; {supposing that the component name is AP, and your derived class from TApplValues is called TMyValues, where MyValues is a pointer to this class }

立即下载

我来说两句】 【发送给朋友】 【加入收藏】 【返加顶部】 【打印本页】 【关闭窗口
中搜索 具有同时处理窗口注册和运行INI文件的超级类
关于我们 / 合作推广 / 给我留言 / 版权举报 / 意见建议 / 广告投放 / 友情链接

Copyright ©2001-2003 Allrights reserved
e_mail:站长:webmaster(at)lihuasoft.net
网站编程QQ群  
京ICP备05001064号

页面生成时间:0.00494