在Delphi中,Inifiles单元中有一个TStringHash的类,不过它的Value仅支持Integer(其实也不是问题,有其它类型可以将变量变为Pointer),有点不舒服,今天没事做就把它替换为variant了,其中Key的名称大小写无关,就是为了加快开发速度! 使用Hashtable, Read More
posted @ 2015-08-21 17:58
findumars
Views(745)
Comments(0)
Diggs(0)
要说灵活性,自然是比不上Delphi自带的覆盖WndProc,或者替换WndProc方法。unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Controls, ... Read More
posted @ 2015-08-21 17:56
findumars
Views(459)
Comments(0)
Diggs(0)
1. 首先需要设置程序生成 map 文件。Project -> Options -> Linker -> Map file , Detailed2. 计算公式Edit2.Text := IntToHex(StrToInt('$'+ Edit1.Text) - StrToInt('$00400000'... Read More
posted @ 2015-08-21 17:52
findumars
Views(5227)
Comments(0)
Diggs(0)
GetLastInputInfo是检测系统输入的,应用到某个程序中不合适!此问题有二种解法来监控输入消息:1.用线程级HOOK,钩上MOUSEHOOK与KEYBOARDHOOK2.在Application.OnMessage中做处理显然,用第2种方法比较方便!众所周知,键盘与鼠标消息都是队列消息,需... Read More
posted @ 2015-08-21 17:48
findumars
Views(1114)
Comments(0)
Diggs(1)
//unit UntService; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs, DB, ADODB,Registry,ActiveX; type TService Read More
posted @ 2015-08-21 17:46
findumars
Views(437)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号