Delphi
文章列表:
性能vs结构
日期:2007-06-05 07:50:45 点击:30 评论:1
前两天简单实现了一个Delphi下的MVC模式,没想到真的就遇到问题了,想想就在不久前和人争论用不用MVC的时候还暗自认为遇到麻烦是功力不够的表现,呵呵,汗啊,报应来得真快。 其实说起来都不是什么大问题,先是重复触发更新的问题。TA有3个属性,每个改动都会Change,T
[TButton]运行时动态创建和删除按钮
日期:2007-06-05 07:50:41 点击:49 评论:1
新开一个project,然后拖两个Button放在窗体上 代码如下: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) btnAddButton: TButton; btnDeleteLast: TButton;
用hook实现dll注入详解
日期:2007-06-05 07:50:39 点击:45 评论:1
需要一个用来注入的dll(inject.dll)及一个调用程序(caller.exe) 流程: caller.exe procedure TestHook; var pwnd,hChild, hwndInject :hwnd; msg:tmsg; begin //通过窗口标题用FindWindow找到要注入的程序的主窗口句柄pwnd pwnd := findwindow('Progman',nil); //用
判断MonthCalander中鼠标点中了日期还是翻页按钮!
日期:2007-06-05 07:50:38 点击:29 评论:1
uses CommCtrl; var OldWindowProc: TWndMethod; procedure TForm1.MyWindowProc(var Msg: TMessage); begin if Msg.Msg = CN_NOTIFY then begin case TWMNotify(msg).NMHdr.code of MCN_GETDAYSTATE: Memo1.Lines.Add('MCN_GETDAYSTATE');//點了翻页 MCN_SELECT, MCN_
网络函数库
日期:2007-06-05 07:50:36 点击:116 评论:1
{========================================================================= 功 能: 网络函数库 时 间: 2002/10/02 版 本: 1.0 =========================================================================} unit Net; interface uses SysUtils ,Windows ,dialogs
TStringGrid多选的复制与拷贝
日期:2007-06-05 07:50:34 点击:88 评论:1
uses Clipbrd ; function StringGridSelectText ( mStringGrid : TStringGrid ): string ; var I , J : Integer ; S : string ; begin Result := '' ; if not Assigned ( mStringGrid ) then Exit ; for J := mStringGrid . Selection . Top to mStringGrid . Selectio
Delphi异常处理的基本原则和方法
日期:2007-06-05 07:50:32 点击:572 评论:1
一、异常的来源。 在 Delphi 的应用程序中,下列的情况都比较有可能产生异常。 ( 1 )文件处理 ( 2 )内存分配 ( 3 ) Windows 资源 ( 4 )运行时创建对象和窗体 ( 5 )硬件和操作系统冲突 ? 二、异常的处理。 ( 1 ) try … except … end ; 在 try 体内的代码
共169页/1345条 首页
上一页
164
165
166
167
168 169
下一页
末页
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169