上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 34 下一页
该文被密码保护。 阅读全文
posted @ 2009-04-01 14:55 谭志宇 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2009-04-01 14:54 谭志宇 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 使用Delphi来跟我学COM (第一部 基本知识) 欢迎大家的光临... ... (36分) 分类:新作发表 Tense (2001-11-07 16:38:00) 第一章 在Delphi中使用接口 1.1 定义接口: 目的:什么是接口,以及和抽象类的关联以及不同点。 抽象类(备注理解接口最简单的方法) 永远不能创建一个抽象类的实例; 本身不能实现功能,依靠派生类实现; ... 阅读全文
posted @ 2009-03-30 16:53 谭志宇 阅读(913) 评论(0) 推荐(0) 编辑
摘要: (1) idispatch是COM object的接口, 在Delphi中通常指一个OleObject. (2) OleVariant是一种COM object兼容的Variant类型, 可以通用任何Ole Automation 类型, 他与CreateOle... 阅读全文
posted @ 2009-03-25 01:57 谭志宇 阅读(487) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2009-03-24 18:11 谭志宇 阅读(5) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2009-03-19 04:01 谭志宇 阅读(10) 评论(0) 推荐(0) 编辑
摘要: procedure TForm3.FormCreate(Sender: TObject); begin Self.Paint; end; function ByteToHex(Src: Byte): String; begin SetLength(Result, 2); asm MOV EDI, [Result] MOV EDI, [ED... 阅读全文
posted @ 2009-03-17 17:11 谭志宇 阅读(339) 评论(0) 推荐(0) 编辑
摘要: ///////////////////////////////////////////// 透明的控件, 一般继承自TGraphicControl的 (就是那些没有handle属性, 不能有focus的控件, 如image) 都有Transparent属性. 对TW... 阅读全文
posted @ 2009-03-13 11:12 谭志宇 阅读(3344) 评论(0) 推荐(0) 编辑
摘要: procedure TForm1.FormCreate(Sender: TObject); var i:integer; begin for i:=0 to ComponentCount-1 do if Components[i] is TEdit then (Components[i] as TEdit).OnKeyPress:=EditKeyPress; end; ... 阅读全文
posted @ 2009-03-13 00:26 谭志宇 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: TButtonTest = class(TGraphicControl) public constructor Create(aOwner: TComponent); override; protected procedure Paint; override; end; constru... 阅读全文
posted @ 2009-03-12 16:34 谭志宇 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 34 下一页