2022年8月11日

Delphi 开机自动启动函数SetAutoRun

摘要: 转载自:https://blog.csdn.net/listest/article/details/121272294 procedure SetAutoRun(isRun: Boolean); var oAutoRunRegister: TRegistry; begin oAutoRunRegis 阅读全文

posted @ 2022-08-11 17:25 YXGust 阅读(309) 评论(0) 推荐(0)

Delphi 设置时间格式函数SetSysDateFormat

摘要: 转载自:https://blog.csdn.net/Listest/article/details/122942761 在时间转字符串的时候特别好用,有的系统的时间格式不一样, 产生的字符串也不一样,我们处理字符串的时候可能会出错, 直接给他统一一种格式,免去手动去设置的痛苦 procedure S 阅读全文

posted @ 2022-08-11 17:25 YXGust 阅读(384) 评论(0) 推荐(0)

Delphi 生成随机汉字函数GenerateChineseWords

摘要: 根据c#改编而来,很多年了。 function GenerateChineseWords(count: integer): string; var i: integer; regionCode, positionCode: integer; regionCode_Machine, positionC 阅读全文

posted @ 2022-08-11 17:23 YXGust 阅读(238) 评论(0) 推荐(0)

Delphi 生成随机字符串函数RandomStr

摘要: 可以生成自定义长度的随机字符串,字符串可以是大小写字母、数字或者是他们的混合。 function RandomStr(StrLength: Integer; Lowercase: Boolean = True; Number: Boolean = True; Uppercase: Boolean = 阅读全文

posted @ 2022-08-11 17:22 YXGust 阅读(1074) 评论(0) 推荐(0)

Delphi 更改扩展名函数ChangeFileExt

摘要: function ChangeFileExt(const FileName, Extension: string): string; var I: Integer; begin I := LastDelimiter('.' + PathDelim + DriveDelim,Filename); if 阅读全文

posted @ 2022-08-11 17:18 YXGust 阅读(829) 评论(0) 推荐(0)

2022年8月9日

Delphi 实现无标题栏覆盖整个屏幕(适合屏保)

摘要: Delphi 实现无标题栏,覆盖整个屏幕,这个在做工控机或屏保时或者做护眼保护程序时有用,所以记下 procedure TForm1.FormCreate(Sender: TObject); begin with Form1 do begin Top := 0; Left := 0; BorderS 阅读全文

posted @ 2022-08-09 10:39 YXGust 阅读(287) 评论(0) 推荐(0)

2022年8月8日

Delphi 简化版拼音反查单元

摘要: 获取汉字的拼音,但是对多音字没有处理好!来源于网络 unit IMCode; (* 简化版拼音反查单元 修改于 Trueway(TM) LiQunwei 修改者 2ccc.com ZhongWan 修改内容 去掉外挂字典,简化代码 *) interface //iMode为1生成完成拼音 为2生成拼 阅读全文

posted @ 2022-08-08 22:47 YXGust 阅读(237) 评论(0) 推荐(0)

2022年8月1日

Delphi中的冷门知识积累

摘要: 前言 平时在Delphi编程的过程中,经常会有一些模棱两可的概念,似懂非懂。有的冷门知识当时通过搜索引擎学会了,可用不了几个月又全忘光,第二次出现又得重新学习。这里对平时遇到的冷门知识点做一个记录汇总,方便日后查看。 1、assert函数的用法 函数原型:procedure Assert(expr 阅读全文

posted @ 2022-08-01 19:03 YXGust 阅读(283) 评论(0) 推荐(0)

Delphi adsl自动拨号的两种方法

摘要: 1.利用rasphone.exe 这里直接贴一个断网、联网更换ip的函数,虽然简陋但是还算稳定。 procedure ChangeIp(ConnName: string; Delay1, Delay2: Integer); begin winexec(PChar('rasphone -h "' + 阅读全文

posted @ 2022-08-01 17:30 YXGust 阅读(171) 评论(0) 推荐(0)

2022年7月28日

Delphi提高开发效率之GExperts专家的使用说明

摘要: GExperts是一组通过扩展集成开发环境(IDE)来提高Delphi和C++ Builer程序员工作效率的工具。是一款开源的IDE扩展专家,由于去外网下载GExperts非常的麻烦,这里直接提供了Delphi7和Delphi11.1下的GExperts安装包,并连带最新源码一起打包,方便大家使用学 阅读全文

posted @ 2022-07-28 22:24 YXGust 阅读(1074) 评论(0) 推荐(1)

导航