自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (10)
  • 论坛 (112)
  • 收藏
  • 关注

原创 Delphi之数组

Delphi之数组     Object Pascal中可以建立丰富的数据类型。数组毫无疑问也是众多自定义数据类型中的一种。     Type       TA = array[0..9] of Integer;     ...     var       A : TA;     和下面这段代码通常效果是相同的(不同的地方在类型篇再说)     var       A : Array [0..9]

2002-09-02 09:05:00 2499

CPU测试

CPU测试

2006-03-16

APIHOOK演示

我在文档中心写的APIHOOK的例子程序。谢谢大家的使用。

2006-03-16

数字录入/编辑控件

数字录入/编辑控件 可设置最大值/最小值 可设小数位位数(为零则只能输入/编辑整数)

2006-03-16

动态加载BPL的例子

功能类似Delphi的IDE,不用知道BPL的内容就能动态加载。

2006-03-16

数字录入/编辑控件

1.0数字录入/编辑控件 可设置最大值/最小值 可设小数位位数(为零则只能输入/编辑整数) 1.01增设了一些属性。另外附加了一个货币录入控件。

2006-03-16

Delphi2010语法手册(基本也适用于XE,XE2)

Delphi2010语法手册(基本也适用于XE,XE2) 目 录 第一章 DELPHI2010入门 ........................................................................................... - 7 - 工程文件结构与语法....................................................................................................................... - 7 - 单元文件结构 .................................................................................................................................. - 8 - 单元语法与uses从句 ..................................................................................................................... - 9 - 常见程序类型 ................................................................................................................................ - 10 - 第二章 DELPHI语法基础 .......................................................................................... - 15 - 2.1 标识符 .................................................................................................................................. - 15 - 2.1.1 标准标识符 .......................................................................................................................... - 15 - 2.1.2 自定义标识符 ...................................................................................................................... - 15 - 2.1.3标识符的作用域 ................................................................................................................... - 16 - 2.2 保留字与限定符 ................................................................................................................... - 16 - 2.3 常量 ...................................................................................................................................... - 17 - 2.3.1 直接常量 .............................................................................................................................. - 17 - 2.3.2 声明常量 .............................................................................................................................. - 18 - 2.4 变量 ...................................................................................................................................... - 21 - 2.5 类型声明 .............................................................................................................................. - 23 - 2.5 注释 ...................................................................................................................................... - 24 - 2.6 表达式 .................................................................................................................................. - 24 - 2.7.语句 ....................................................................................................................................... - 25 - 2.7.1简单语句 ............................................................................................................................... - 25 - 2.7.2 结构语句 .............................................................................................................................. - 26 - 2.8块和域 ................................................................................................................................... - 29 - 2.8.1 块(Block) .......................................................................................................................... - 29 - 2.8.2 域(Scope) ......................................................................................................................... - 30 - 2.8.3 名称冲突 .............................................................................................................................. - 30 - 2.9 类型兼容与赋值兼容 ........................................................................................................... - 31 - 类型兼容性 .................................................................................................................................... - 31 - 赋值兼容性 .................................................................................................................................... - 32 - 2.10类型转换 ............................................................................................................................. - 32 - 2.10.1 值转换 ................................................................................................................................ - 33 - 2.10.2 变量转换 ............................................................................................................................ - 33 - - 3 - 第三章 数据类型及运算符 ......................................................................................... - 35 - 3.1 简单类型 .............................................................................................................................. - 36 - 3.1.1 整型类型 .............................................................................................................................. - 36 - 3.1.2 实型类型 .............................................................................................................................. - 36 - 3.1.3 字符类型 .............................................................................................................................. - 37 - 3.1.4 布尔类型 .............................................................................................................................. - 38 - 3.1.5 枚举类型 .............................................................................................................................. - 38 - 3.1.6 子界类型 .............................................................................................................................. - 40 - 3.2 结构类型 .............................................................................................................................. - 41 - 3.2.1 集合及其运算 ...................................................................................................................... - 41 - 3.2.2 数组 ...................................................................................................................................... - 42 - 3.2.3 记录类型 .............................................................................................................................. - 44 - 3.3 字符串类型 ........................................................................................................................... - 48 - 3.4 指针 ...................................................................................................................................... - 49 - 3.5变体类型 ............................................................................................................................... - 52 - 3.6 运算符 .................................................................................................................................. - 57 - 3.6.1 有序类型运算符 .................................................................................................................. - 57 - 3.6.2 数学运算符 .......................................................................................................................... - 57 - 3.6.3 逻辑运算符 .......................................................................................................................... - 58 - 3.6.4 位运算符 .............................................................................................................................. - 59 - 3.6.5 字符串运算符 .................................................................................................................. - 60 - 3.6.6 集合运算符 .......................................................................................................................... - 60 - 3.6.7 指针运算符 .......................................................................................................................... - 61 - 3.6.8 关系运算符 .......................................................................................................................... - 61 - 第四章 程序流程控制 ................................................................................................. - 61 - 4.1条件语句 ............................................................................................................................... - 62 - 4.2选择语句 ............................................................................................................................... - 63 - 4.3循环语句 ............................................................................................................................... - 64 - 4.4程序中止例程 ........................................................................................................................ - 69 - 第五章 函数与过程 ...................................................................................................... - 72 - 5.1 例程的声明 ........................................................................................................................... - 72 - 5.2 例程参数 .............................................................................................................................. - 74 - - 4 - 5.3 例程的定义与使用 ............................................................................................................... - 82 - 5.4 例程指针 .............................................................................................................................. - 86 - 5.5 匿名方法 .............................................................................................................................. - 88 - 5.6 重载例程 .............................................................................................................................. - 94 - 第八章 类与对象 .......................................................................................................... - 96 - 6.1 面向对象初步 ....................................................................................................................... - 96 - 1. 现实世界中的对象?................................................................................................................ - 96 - 2. 在计算机中克隆现实世界的对象 ............................................................................................ - 96 - 3. 面向对象编程中的对象 ............................................................................................................ - 98 - 4. 面向对象的编程方式................................................................................................................ - 98 - 6.2 类与对象 .............................................................................................................................. - 99 - 6.2.1 声明一个class类型 ............................................................................................................. - 99 - 6.2.2 创建一个对象 .................................................................................................................... - 100 - 6.2.3 套嵌类的声明 .................................................................................................................... - 100 - 6.2.4 类的继承 ............................................................................................................................ - 102 - 6.2.5 类成员的访问权限 ............................................................................................................ - 103 - 6.3 对象字段及对象函数 ......................................................................................................... - 104 - 6.3.1 对象字段 ............................................................................................................................ - 105 - 6.3.2 对象方法 ............................................................................................................................ - 106 - 6.3.3 抽象方法 ............................................................................................................................ - 113 - 6.4 类字段及类方法 ................................................................................................................. - 114 - 6.4.1 类字段 ................................................................................................................................ - 114 - 6.4.2 类方法 ................................................................................................................................ - 115 - 6.4.3 构造与析构函数 ................................................................................................................ - 116 - 6.5 属性 .................................................................................................................................... - 121 - 6.6 辅助类(class helper)............................................................................................................ - 129 - 6.7 对象引用和类引用 ............................................................................................................. - 130 - 6.7.1 类引用 ................................................................................................................................ - 130 - 6.7.2 对象引用 ............................................................................................................................ - 131 - 6.7.3 Self参数 .............................................................................................................................. - 134 - 6.8 其它的对象类型 ................................................................................................................. - 135 - 1. 高级记录类型 ......................................................................................................................... - 135 - 2. object类型 ............................................................................................................................... - 136 - 6.9 多态 .................................................................................................................................... - 136 - - 5 - 第七章 接口 ................................................................................................................. - 139 - 7.1 什么是接口 ......................................................................................................................... - 139 - 7.2 声明一个接口 ..................................................................................................................... - 140 - 7.3 实现一个接口 ..................................................................................................................... - 141 - 7.4 方法别名 ............................................................................................................................ - 144 - 7.5 接口的代理 ......................................................................................................................... - 145 - 7.6 接口的赋值与转型 ............................................................................................................. - 147 - 7.6.1 接口的赋值兼容 ................................................................................................................ - 147 - 7.6.2 接口的转型 ........................................................................................................................ - 149 - 7.7 使用接口实现多态 ............................................................................................................. - 151 - 第八章 异常处理 ........................................................................................................ - 154 - 6.1 利用条件语句处理异常 ...................................................................................................... - 154 - 6.2 异常对象 ............................................................................................................................ - 155 - 6.2.1 自定义异常类 .................................................................................................................... - 155 - 6.3 异常处理语句 ..................................................................................................................... - 157 - 6.3.1. try...except...end语句 ........................................................................................................ - 157 - 6.3.2. try...finally...end语句 .......................................................................................................... - 159 - 6.4 手动触发异常 ..................................................................................................................... - 161 - 6.5 Abort语句 ........................................................................................................................... - 162 - 6.6 套嵌的异常处理语句 ......................................................................................................... - 163 - 第九章 运算符重载 .................................................................................................... - 165 - 9.1 认识运算符重载 ................................................................................................................. - 165 - 9.2 如何重载运算符 ................................................................................................................. - 166 - 第十章 泛型 ................................................................................................................. - 169 - 10.1 声明泛型类型 ................................................................................................................... - 172 - 10.2 泛型的实例化 ................................................................................................................... - 176 - 10.3 泛型方法重载 ................................................................................................................... - 178 - - 6 - 10.4 泛型类型兼容 ................................................................................................................... - 179 - 10.5 泛型的限定 ....................................................................................................................... - 180 - 10.6 TList类 ............................................................................................................................... - 183 - 附录A ASCII字符集 ................................................................................................... - 188 - 附录B 变体类型转换 ................................................................................................ - 189 - 附录C 常见字符集与字符编码方式 ...................................................................... - 190 - C.1 常见字符集 ......................................................................................................................... - 191 - 1. ASCII字符集 ............................................................................................................................. - 191 - 2. UCS字符集 ............................................................................................................................... - 191 - 3. Unicode字符集 ........................................................................................................................ - 192 - C.2 字符编码方式 ..................................................................................................................... - 192 - 1. UTF-16 ....................................................................................................................................... - 193 - 2. UTF-8 ......................................................................................................................................... - 194 - 3. UTF-32 ....................................................................................................................................... - 195 - C.3 汉字字符集 ......................................................................................................................... - 195 - 附录D DELPHI2010字符串详解 ........................................................................... - 196 - 附录E 文件读写 ......................................................................................................... - 204 - E.1 利用文件变量进行读写 ........................................................................................................ - 204 - E.2 使用流操作文件 ................................................................................................................... - 209 - E.3 直接操作文件 ....................................................................................................................... - 213 -

2012-05-05

GDIPlus的Delphi开发包

因为开发要用到GDIPlus,在网上收集到了毛泽发封装的GDIPlus源代码.封装的非常好. 为了和.NET进一步接近,把他们都改成接口模式的.能够实现垃圾回收. 在毛泽发的GDIPlus基础上把所有的GDIPlus对象都变成接口方式,生存期自动管理.可以像C#一样用完不管释放. 另外本开发包适用于Delphi5-Delphi2009中的任意版本.包括Delphi5和Delphi2009

2008-11-11

Delphi XE手册

Delphi XE HandBook DelphiXE手册 Table Of Contents Introduction....................................................................................... ..............5 About This Book....................................................................................................................5 Source Code.............................................................................................. .......................6 Editor and Tech Review ers............................................................................... ...............7 About Myself ............................................................................................... .................... ......7 Contact Informatio n............................................................................................. ...........8 Table of Co ntents....................................... ......................................................9 Chapter 1: Delphi XE ID E.............................................. ..................................13 Managing Projects...............................................................................................................14 Build Gr oups..................................................................................................................15 The Configuration Manager...................................................................................... .....16 Build Tools Customizatio n.................................................................................. ...........17 Extensions to Searchin g............................................................................................. .........18 Search For Usages...................................................................................................... ....18 Local Search Shor t Cut Ke ys..........................................................................................19 Editor ............................................................................................................. ............ .........20 New Live Temp lates......................................................................... .............................20 XMLDoc Comments and Help Insight................................................................. .........22 Navigating Modified Code................................................................................ .............23 Source Code Fo rmatting ........................................................................................ .............24 Formatter Pr ofiles.................................................................. .......................................25 Marco Cantù, Delphi XE Handbook 10 - Table of Contents Other Changes in Formatti ng........................................................................................26 Form Designer ....................................................................................... ........................... ..26 Updated Wizards....................................................................................... ......................... 28 Install Componen t Wizard .................................................................... ........................28 Web Server Application................................................................................ ......................29 The Deb ugger......................................................................................................................30 Named Threads.................................................................................. ...........................30 Run Without Debugging....................................................... ........................................30 More Debugger Features...............................................................................................31 Chapter 2: Integrat ed Toolin g.........................................................................33 Version Control Integratio n........................................................ .......................................34 Version Control Systems .................................................................. .............................34 Subversi on..................................................................................................................... 36 Subversion in Delphi................................................................................................ ......41 Beyond Compare In tegratio n.................................................................... ....................43 The Updated Hist ory View .................................................................... ........................44 Version Insight and Its Extens ions.................................................. .............................46 UML Modeling ................................................................................................... ................ .47 Classic Live Diagrams: Packages and Cl asses....................................... ........................47 Ancestor Classes in Class Diagrams.................................................................... ..........48 Sequence Diagrams.......................................................................... .............................49 Audits, Metrics, and Documentation from the Co mmand Line...................................50 Third-Party Tools....................................................................................... ....................... ..51 CodeSite................................................................................ ....................................... ..51 AQTime......................................................................................................................... .54 FinalBui lder ................................................................................................................... 55 Chapter 3: Compi ler and RTL.........................................................................59 The Delphi Compiler ..........................................................................................................60 Different Defaults, Different Re sult................................................................ ..............60 No More String Checks .......................................................... .......................................60 New Alignments................................................................................................ .............61 RTTI and Virtual Methods Interceptors........................................ ...............................62 The Run Time Library................................................................. .......................................66 Dates and Files................................................................. .............................................67 Splitting St rings.................................................................................................... .........68 Command Line Parsing.................................................................................... .............68 GUID Help er.................................................................................................................69 Marco Cantù, Delphi XE Handbook Table of Contents - 11 Number of CPU Cores.................................................................. .................................70 Binary Reader and Writ er..................................................................................................70 Regular Expression s...........................................................................................................7 3 A Regular Expressions Primer.......................................................................................73 Regular Expressions in Delphi XE...................................... ..........................................75 The RegExPrimer Example ...........................................................................................76 Threading and Sync hronization.........................................................................................80 Anonymous Th reads...................................................................... ...............................80 Waiting, While Ke eping Bu sy................................................................................ ........84 Using a SpinWait...........................................................................................................86 A Thread-Safe Queue .................................................................. ..................................88 Chapter 4: XE Libraries..................................................................................91 Minor VCL Changes.......................................................................... ..................................91 JSON Processing................................................................................................................ .92 JSON Parsing Cleaned Up.............................................................................................92 Google Translate Revisited............................................................................................94 JSON and Ta bles................................................................................. ..........................96 JSON Marshaling..........................................................................................................97 XML Processing ................................................................................................ ................1 00 WebBroker and Indy Web Servers ...................................................................................102 Building a Sample Serv er................................................... .........................................104 SOAP Improvements..................................................................... ...................................109 Microsoft's Azure Native Support....................................................................................109 Delphi XE Components for Azure................................................................................110 The Azure101 Demo .................................................................................... ..................111 The Azure Publish and Consume Demo......................................................................116 Amazon Web Servic es and Mo re.............................................................. ...................120 Epilogue................................................................................................... .....123 DataSnap White Papers ........................................................................ .......................123 Everything XE Demo ................................................................. ..................................124 More Books Coming..........................................................................................................125 Index ....................................................................................................... ......127

2012-05-09

FireMonkey技术手册

目录 第一章 前言 ....................................................... 3 一、FireMonkey概述 ............................................. 3 二、FireMonkey技术简介 ......................................... 4 第二章 跨平台开发环境设置.......................................... 10 一、MAC OSX开发环境设置 ....................................... 10 二、在MAC安装Firemonkey的iOS工具............................ 12 第三章 创建3D应用................................................. 14 一、创建3D应用项目............................................ 14 二、增加和调整组件............................................. 14 第四章 数据库应用开发.............................................. 18 第五章 iOS 应用开发................................................ 22 一、创建FireMonkey iOS项目.................................... 22 二、表单设计................................................... 23 三、编写Button的点击响应代码.................................. 25 四、在Windows测试iOS应用..................................... 26 五、部署应用代码到MAC的Xcode ................................. 27 六、编译和部署到iOS ........................................... 28 第六章 使用FireMonkey实现图像效果................................. 29 一、在图片上运用图效........................................... 29 二、在图效上运用动画........................................... 32 第七章 使用FireMonkey实现动画效果................................. 34 一、修改TFloatAnimation的Floating属性值...................... 34 二、添加TcolorAnimation,用于颜色改变 ......................... 37 三、使用TBitmapAnimation进行图像变化.......................... 39 第八章 自定义应用界面风格.......................................... 42 一、在应用运行时改变风格....................................... 43 二、在设计应用时改变风格....................................... 45 三、变换特定控件的风格......................................... 46 第九章 菜单和控件布局.............................................. 49 一、菜单(Menu)............................................... 49 二、如何布置FireMonkey控件.................................... 49 第十章DataSnap(三层)技术和iOS客户端 ............................ 53 一、创建DataSnap服务器。...................................... 53 二、实现iOS客户端............................................. 58

2012-05-09

WindowsCE,Mobile用到的RAPI和dccManSink接口

WindowsCE,Mobile用到的RAPI和dccManSink接口. 有例子等. 有了这个可以做很多事情.可以感知WCE,WM设备的插拔等各种事件.可以操作嵌入式设备. 可以制作PC上的安装文件,把文件安装到设备上等等.

2010-01-14

暂住证收容政策将要取消

发表于 2003-06-03 最后回复 2019-10-12

举世瞩目的特大杀人强奸案!!!!

发表于 2003-03-29 最后回复 2019-10-12

那天,我在风衣里藏了把刀.

发表于 2003-06-03 最后回复 2019-10-12

谁能告诉我关于程序员考试方面的事?

发表于 2001-11-17 最后回复 2016-06-17

QQ的HTTP代理怎样设置呀?

发表于 2003-07-01 最后回复 2012-11-23

研究心得----个人最喜欢的Delphi2006的功能.记录类型操作符重载

发表于 2005-12-16 最后回复 2005-12-16

创建项目时报:http://1.1 400 bad Request错误

发表于 2004-07-15 最后回复 2005-05-01

100分求论坛,ASP.NET+ACCESS数据库

发表于 2004-07-16 最后回复 2004-07-17

怎么开发Windows服务,而且还能有托盘图标

发表于 2004-04-19 最后回复 2004-04-22

访歼十首席设计师杨伟

发表于 2003-09-27 最后回复 2003-09-27

今天是七夕,中国传统的情人节.别忘了给女朋友一个惊喜

发表于 2003-08-04 最后回复 2003-08-05

追美眉追不到之不亦快哉 (转载)

发表于 2003-07-29 最后回复 2003-07-30

美国还讲不讲理呀?

发表于 2003-07-26 最后回复 2003-07-28

我心情好,快来领分呀!

发表于 2003-07-23 最后回复 2003-07-23

女人坚持不了多久

发表于 2003-05-16 最后回复 2003-05-16

请教大便时如何压水花的问题

发表于 2003-05-13 最后回复 2003-05-13

终于又迈出一份----500元.呵呵,下午放分

发表于 2003-04-29 最后回复 2003-04-30

如何在ADO的批量提交之前获得数据集中被删除的数据?200分

发表于 2002-09-06 最后回复 2003-04-27

高兴散分

发表于 2003-03-19 最后回复 2003-03-19

巨简单的问题

发表于 2003-03-11 最后回复 2003-03-12

给测试一下控件

发表于 2002-10-22 最后回复 2002-10-23

帮忙测试控件

发表于 2002-10-22 最后回复 2002-10-22

帮忙测试控件

发表于 2002-10-22 最后回复 2002-10-22

我第一

发表于 2002-10-17 最后回复 2002-10-17

浅谈API HOOK技术(二)

发表于 2002-02-09 最后回复 2002-10-15

浅谈API HOOK技术(一)

发表于 2002-02-09 最后回复 2002-10-15

我发明了Kiss了!!!

发表于 2002-02-01 最后回复 2002-09-02

高兴!Delphi7终于去掉可恶的Quick Report了

发表于 2002-08-24 最后回复 2002-08-24

Delphi 7 发布了

发表于 2002-08-10 最后回复 2002-08-12

用ADO方式如何存取流到数据库

发表于 2002-07-09 最后回复 2002-07-09

谁知道WPS Office 2002的下载地点

发表于 2002-06-25 最后回复 2002-06-25

如何从扫描仪读数据?

发表于 2001-07-09 最后回复 2002-06-15

游子论坛的地址是多少?

发表于 2002-05-03 最后回复 2002-05-03

谁明白这个问题

发表于 2002-04-24 最后回复 2002-04-29

非高手莫要进来

发表于 2002-03-25 最后回复 2002-03-25

找控件

发表于 2002-03-14 最后回复 2002-03-19

非VCL的Delphi类库

发表于 2002-02-21 最后回复 2002-03-15

---400分----

发表于 2002-03-15 最后回复 2002-03-15

DBF文件的格式,或生成DBF格式文件的Delphi、Basic例子

发表于 2002-03-03 最后回复 2002-03-15

200分想要吗

发表于 2002-03-04 最后回复 2002-03-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人 TA的粉丝

提示
确定要删除当前文章?
取消 删除