上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 70 下一页

2021年1月25日

Delphi ClientDataSet 排序[1]

摘要: Delphi ClientDataSet 排序[1] 1、单个字段排序 (索引名称自定义,例如:sSort) //升序 with ClientDataSet1 do begin IndexDefs.Update; //更新 if IndexDefs.IndexOf( 'sSort' )>=0 the 阅读全文

posted @ 2021-01-25 15:23 滔Roy 阅读(951) 评论(0) 推荐(0) 编辑

2021年1月21日

Delphi 服务程序[7] 调用外部程序的方法

该文被密码保护。 阅读全文

posted @ 2021-01-21 11:10 滔Roy 阅读(150) 评论(0) 推荐(0) 编辑

Delphi 服务程序[6] 服务事件详述(OnStart、OnExecute )

摘要: Delphi 服务程序[6] 服务事件详述(OnStart、OnExecute ) 有两个位置常用于放置服务代码:在OnExecute或OnStart事件中。 1、OneExecute: 如果需要,可用代码创建一个线程。 在与服务关联的线程启动时发生。 如果您没有派生新线程来处理OnStart事件处 阅读全文

posted @ 2021-01-21 10:52 滔Roy 阅读(708) 评论(0) 推荐(0) 编辑

Delphi 服务程序[5] 描述、开启、停止、检索、状态

摘要: Delphi 服务程序[5] 描述、开启、停止、检索 1、服务程序中不能设定描述,可以通过以下方法设定: uses Registry; procedure TSerTest.ServiceAfterInstall(Sender: TService); var Reg: TRegistry; begi 阅读全文

posted @ 2021-01-21 10:18 滔Roy 阅读(416) 评论(0) 推荐(0) 编辑

Delphi 服务程序[4] 两栖服务(系统服务和桌面程序)

摘要: Delphi 服务程序[4] 两栖服务(系统服务和桌面程序) 方法1: uses {$IFDEF DEBUG} Forms, {$ELSE} SvcMgr, {$ENDIF} Unit1 in 'Unit1.pas' {SerTest: TSerT}, Unit2 in 'Unit2.pas' {F 阅读全文

posted @ 2021-01-21 10:08 滔Roy 阅读(416) 评论(0) 推荐(0) 编辑

Delphi 服务程序[3] 安装、卸载 的方法

摘要: Delphi 服务程序[3] 安装、卸载 的方法 1、CMD命令窗口bat安装(假设生成SerTest.exe) SerTest.exe /install //安装 SerTest.exe /unstall //卸载 可以在命令行后面加/silent参数,使其不弹出安装、卸载成功的提示框,例如 Se 阅读全文

posted @ 2021-01-21 09:08 滔Roy 阅读(634) 评论(0) 推荐(0) 编辑

Delphi 服务程序[2] TService 属性、事件

摘要: Delphi 服务程序[2] TService 属性、事件 1、TService属性: AllowPause: //是否允许暂停 AllowStop: //是否允许停止 Dependencies: //设置该服务与其他服务的依赖关系 DisplayName: //在Windows服务管理器中显示的名 阅读全文

posted @ 2021-01-21 08:45 滔Roy 阅读(660) 评论(0) 推荐(0) 编辑

Delphi 服务程序[1] 介绍

摘要: Delphi 服务程序[1] 介绍 1、系统服务优点: 随系统启动而启动,不需要用户手动执行,适合做后台检测程序等 不用登录系统即可运行 在后台运行,不与Windows桌面相互影响 拥有System权限,在任务管理器中无法结束运行 2、系统服务和桌面程序的区别是: 系统服务不用登陆系统即可运行; 系 阅读全文

posted @ 2021-01-21 08:34 滔Roy 阅读(583) 评论(0) 推荐(0) 编辑

2021年1月20日

WinCMD %~d0、%cd%、%0、%~dp0、%~sdp0 获取路径

摘要: WinCMD %~d0、%cd%、%0、%~dp0、%~sdp0 获取路径 %~d0 //当前盘符 %cd% //当前路径 %0 //当前执行命令行 %~dp0 //当前bat文件路径 %~sdp0 //当前bat文件短路径 示例: echo %cd% echo %~dp0 创建时间:2021.01 阅读全文

posted @ 2021-01-20 14:34 滔Roy 阅读(1607) 评论(0) 推荐(0) 编辑

2021年1月19日

[原创]Halcon $符号的使用

摘要: [原创] Halcon $符号的使用 {该文首发于博客园 滔Roy,无须授权即可转发,请自觉保留头部申明} 1、文本 aa:='Delphi'$'15' //右对齐(15位长度) aa:='Delphi'$'-15' //左对齐 2、整数 / 小数 aa:=789.123$'.2' //四舍五入,保 阅读全文

posted @ 2021-01-19 09:20 滔Roy 阅读(1010) 评论(0) 推荐(0) 编辑

上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 70 下一页

导航