2019年8月4日

delphi 中配置文件的使用(*.ini)和TIniFile 用法

摘要: 一、配置文件 .ini 文件是基于文本类型的格式文件,用于存储程序初始化和配置数据。 .ini文件是有段(Sections)和键(key)组成的,每个文件可以有 n个段(每个段有方括号括起来),每个段可以有m个键,大致格式如下: [secontion] KeyName1=Value1; ;comment KeyName2=Value2; ... 阅读全文

posted @ 2019-08-04 18:25 癫狂编程 阅读(778) 评论(0) 推荐(0)

Delphi 字符串加密与解密函数

摘要: EncdDecd 单元: EncodeString、DecodeString、EncodeBase64、DecodeBase64 uses EncdDecd; const str = '万一的 Delphi 博客'; procedure TForm1.Button1Click(Sender: TObject); var strEncode,strDecode: string; begi... 阅读全文

posted @ 2019-08-04 11:09 癫狂编程 阅读(742) 评论(0) 推荐(0)

Delphi编写的等长加密与解密

摘要: 最近在看一本关于网络游戏服务端开发的书,虽然该书是个空架子,里面没有多少实际的内容(此书评价不好),但其中关于等长加密与解密的代码还是有一定的借鉴作用的。他山之石,可以攻玉。因为书中是C++的代码,所以我花了半个小时的时间将它转换成了Delphi的代码。公布出来便于有这方面需要的朋友可以借鉴使用。 阅读全文

posted @ 2019-08-04 10:44 癫狂编程 阅读(1058) 评论(0) 推荐(0)

java和delphi共用的des加密解密

摘要: java: import antlr.StringUtils;import org.jeecgframework.core.util.StringUtil; import java.security.SecureRandom; import javax.crypto.Cipher;import ja 阅读全文

posted @ 2019-08-04 10:26 癫狂编程 阅读(1208) 评论(0) 推荐(0)

delphi读写INI系统配置文件

摘要: delphi读写INI系统配置文件 一、调用delphi内建单元 uses System.IniFiles; 1、使用类TIniFile 2、类TIniFile的主要方法和函数: {$IFDEF MSWINDOWS} { TIniFile - Encapsulates the Windows INI file interface (Get/SetPrivateProfileXXX func... 阅读全文

posted @ 2019-08-04 09:41 癫狂编程 阅读(900) 评论(0) 推荐(0)

1.ini读写操作

摘要: 一、使用 TIniFile implementationvar ini:tinifile; path:string; {ini文件路径} section,key:string;{表示ini文件的小节、关键字}{$R *.dfm} procedure TForm1.Button1Click(Sende 阅读全文

posted @ 2019-08-04 09:31 癫狂编程 阅读(302) 评论(0) 推荐(0)

【经验】Delphi INI文件保存与读取

摘要: //需要引用IniFiles uses system.IniFiles; //保存INI配置文件 procedure TForm1.btnSaveClick(Sender: TObject); var myIniFile: TIniFile; filepath: string; begin filepath := ExtractFilePath(Application.Exen... 阅读全文

posted @ 2019-08-04 09:30 癫狂编程 阅读(432) 评论(0) 推荐(0)

导航

好的代码像粥一样,都是用时间熬出来的