|
|
|
|
|
 |
delphi VC与Delphi之间动态链接库互相调用 |
| |
日期:2007-06-27 09:27:11
点击:16 评论:0 |
|
Delphi中调用格式:
Procedure ShowMess (h:HWND; mess:PChar); Stdcall;{Cdecl;} external LibName;
如无Stdcall或Cdecl声名,Delphi默认Register(FastCall)调用格式。
注意Delphi与VC的对齐格式不同,在VC中定义结构时要用以下格式:
|
|
 |
delphi 创建纯资源的DLL |
| |
日期:2007-06-27 09:25:18
点击:30 评论:0 |
|
ShowMessage('Bad Dll Load')
else begin
Icon := LoadIcon(h, 'ICON_1');
DrawIcon(Form1.Canvas.Handle, 10, 10, Icon);
FreeLibrary(h);
end;
|
|
 |
delphi delphi处理流 |
| |
日期:2007-06-23 13:59:22
点击:37 评论:0 |
|
TMemoryStream的继承关系如下
TObject
|
TStream
|
TCustomMemoryStream
|
TMemoryStream
如何使用TMemoryStream? |
|
 |
delphi Working with OpenGL - An FAQ |
| |
日期:2007-06-23 13:57:43
点击:23 评论:0 |
|
Compared to other graphics libraries you need very little additional software. Microsoft provides two dynamic link libraries (DLLs) with Windows9x and WindowsNT called OpenGL32.DLL and GLU32.DLL, which are able to render on accelerated as well as una |
|
 |
delphi Making Forms Work: Part IV |
| |
日期:2007-06-23 13:55:14
点击:16 评论:0 |
|
Dialogs of this nature are normally centered on the display screen so that they might grab the user's attention. Most of the time this works, although sometimes the effect would be improved if the dialog were centered on the application or even posi |
|
 |
delphi Making Forms Work: Part III |
| |
日期:2007-06-23 13:43:16
点击:19 评论:0 |
|
One of Windows' many tasks is to act like the dispatcher in a taxi cab operation. When you call for a cab, a dispatcher receives the request and relays it to a driver. All the drivers may hear the call, but only one will respond. Alternatively, a dr |
|
 |
delphi Making Forms Work: Part II |
| |
日期:2007-06-23 13:41:24
点击:19 评论:0 |
|
Modal forms offer specific features that we cannot have when displaying non-modally. Most commonly, we will display a form modally to isolate its processes from anything that might otherwise happen on the main form. Once these processes complete, you |
|
 |
delphi Making Forms Work |
| |
日期:2007-06-23 13:39:13
点击:11 评论:0 |
|
In just about every Delphi application, we use forms to present and retrieve information from users. Delphi arms us with a rich array of visual tools for creating forms and determining their properties and behaviour. We can set them up at design ti |
|
 |
delphi hint |
| |
日期:2007-06-23 13:34:47
点击:14 评论:0 |
|
Often, when a user starts using your new program, he needs assistance to step him through "how-to" do different operations. As experience grows, less structured help is required. Quick and appropriate information can be helpful. So - where can this |
|
 |
delphi 使用Application.ProcessMessages |
| |
日期:2007-06-23 13:28:22
点击:24 评论:0 |
|
ProgressBar1.Max := Table1.RecordCount;
ProgressBar1.Position := 0;
Button1.Enabled := False;
try
Table1.First;
while not Table1.EOF do
begin
Sleep(50); // Just to slow this down.
ProgressBar1.Position := Prog |
|
 |
delphi 使用注册表 |
| |
日期:2007-06-23 13:23:52
点击:19 评论:0 |
|
The Registry is a database used to store settings and options for the 32 bit versions of Microsoft Windows; including Windows 95, 98 and NT. It contains information and settings for hardware, software, users, and preferences of the PC. Whenever a use |
|
 |
delphi MTS组件——从理论到实践 |
| |
日期:2007-06-22 18:00:52
点击:34 评论:0 |
|
简述
·MTS是一种中间层COM组件宿主环境
·中间层组件应当是无状态的
·依靠无状态模式,MTS可以缓冲资源,在客户端之间共享组件
·COM和MTS组合起来,进化成为COM+
·利用类和向导,Delphi简化了MTS组件的创建
·从ActiveX类库入手--MTS组件必 |
|
 |
delphi 字符相似性函数 |
| |
日期:2007-06-22 17:58:48
点击:10 评论:0 |
|
SOUNDEX(char_expr) 比较两个字符串的相似性后返回一个四位数代码。
DIFFERENCE(char_expr1,char_expr2) 比较两个字符串,返回值从0到4,4为最优匹配。
Delphi没有可用的函数,我写了一个:
function MaxMatchStr(DestStr:String;Strs:array of String):String;
va |
|
 |
delphi 使用SQL字段模糊查询 |
| |
日期:2007-06-22 17:57:47
点击:16 评论:0 |
|
Delphi作为一个强大的数据库应用开发工具的一个重要标志,就是支持SQL编程。在实际的过程中,经常需要对某些字段进行模糊查询。如对“姓名”字段进行查询,当输入“王”时,能自动地将王姓的所有记录列出来。其实,通过结合SQL和Delphi的特点,就能很容易地完成这个功能 |
|
|
|
|
|
|
|