delphi 字长 值域 c++
shortint 8位有符号整型 signed char
smallint 16位有符号整型 short
longint 32位有符号整型 int
byte 8位无符号整型 unsigned char
word 16位无符号整型 unsigned short
integer 32位有符号整型 int
cardinal 32位无符号整型 unsigned int
boolean 真假 bool
bytebool 真假 或 8位无符号整型 unsigned char
wordbool 真假 或 16位无符号整型 unsigned short
longbool 真假 或 32位无符号整型 bool (winapi)
ansichar 8位无符号字符 char
widechar 宽字编码字符 wchar_t
char 8位无符号字符 char
ansistring delphi的字符串类 ansistring 类
string[n] 老式的delphi字符串, n = 1..255字节 smallstring 模板类
shortstring 老式的delphi字符串, 255字节 smallstring 255
string delphi的ansistring类 ansistring
single 32位浮点数 float
double 64位浮点数 double
extended 80位浮点数 long double
real 32位浮点数 double
pointer 32无类型指针 void *
pchar 32位字符型指针 unsigned char *
pansichar 32位ansi型字符指针 unsigned char *
comp 64位浮点数 comp 类
olevariant ole可变类型值 olevariant 类