易截截图软件、单文件、免安装、纯绿色、仅160KB

VC Delphi 数据类型


Delphi 数据类型列表
分类
范围
字节
备注
简单类型
序数
整数
Integer
-2147483648 .. 2147483647
4
有符号32位
Cardinal
0 .. 4294967295
4
无符号32位
Shortint
-128 .. 127
1
有符号8位
Smallint
-32768 .. 32767
2
有符号16位
Longint
-2147483648 .. 2147483647
4
有符号32位
Int64
-263 .. 263
8
有符号64位
Byte
0 .. 255
1
无符号8位
Word
0 .. 65535
2
无符号16位
Longword
0 .. 4294967295
4
无符号32位
字符
AnsiChar(Char)
ANSI字符集
 
8位
WideChar
Unicode字符集
 
16位
布尔
Boolean
False < True
Ord(False) = 0
Ord(True) = 1
Succ(False) = True
Pred(True) = False
1
 
ByteBool
False <> True
Ord(False) = 0
Ord(True) <> 0
Succ(False) = True
Pred(False) = True
1
 
WordBool
2
 
LongBool
4
 
枚举
 
 
 
 
子界
 
 
 
 
实数
 
Real
5.0×10-324 .. 1.7×10308
8
[精度]15..16
Real48
2.9×10-39 .. 1.7×1038
6
[精度]11..12;
向后兼容
Single
1.5×10-45 .. 3.4×1038
4
[精度]7..8
Double
5.0×10-324 .. 1.7×10308
8
[精度]15..16
Extended
3.6×10-4951 .. 1.1×104932
10
[精度]19..20
Comp
-263 + 1 .. 263 - 1
8
[精度]19..20
Currency
-922337203685477.5808 .. 
922337203685477.5807
8
[精度]19..20
字符串
 
 
ShortString
255个字符
2..256B
向后兼容
AnsiString
大约 231 个字符
4B..2GB
8位(ANSI)字符
WideString
大约 230 个字符
4B..2GB
多用户服务和
多语言应用程序; 
和com定义的BSTR兼容
其他
String
String[0..255]
PChar
PAnsiString
PWideString
 
 
结构类型
集合
 
Set
最多256个元素[0..255]
 
 
数组
静态数组
 
 
 
 
动态数组
 
 
 
 
记录
 
Record
 
 
 
文件
 
File
 
 
 

 
Class
 
 
 
类引用
 
Class reference
 
 
 
接口
 
Interface
 
 
 
指针类型
无类型指针
 
Poi


相关文档:

Delphi中的Record


在Delphi中的Record类型中,与之C语言对应的即是结构体类型(struct
),也可能是为了符合C语言或C++程序员的习惯,对于它在Delphi中的应用存在的一些问题进行初步的说明。在Delphi中的记录体类型有两种方式定义
Type
    RecTest = record (packed
)
      ID :integer; ......

Delphi中的Record


在Delphi中的Record类型中,与之C语言对应的即是结构体类型(struct
),也可能是为了符合C语言或C++程序员的习惯,对于它在Delphi中的应用存在的一些问题进行初步的说明。在Delphi中的记录体类型有两种方式定义
Type
    RecTest = record (packed
)
      ID :integer; ......

delphi 動態安裝服務


unit winntService;
interface
uses
Windows,WinSvc,WinSvcEx;
function InstallService(const strServiceName,strDisplayName,strDescription,strFilename: string):Boolean;
procedure UninstallService(strServiceName:string);
implementation
function StrLCopy(Dest: PChar; const Source: PChar; MaxLen: C ......

Delphi游戏开发网址大全[转贴]


Source Code
http://www.codefans.com/CodeList/Catalog_5_CodeTime_Desc_1.html
http://www.vscodes.com/sitemap.html
http://www.itlove.net/Soft/261/
DelphiX
http://www.micrel.cz/Dx/
http://www.delphi3d.net/index.php
http://www.pascalgamedevelopment.com/
http://www.2ccc.com/article.asp?articleid ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号