『Delphi和C++数据类型对照表』

『Delphi和C++数据类型对照表』

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<n>   模板类
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   类

 

 

VC++
Delphi
INT
 Integer
UNSIGNED
 Word
UNSIGNED INT
 Word
UINT
 Word
WORD
 Word
UNSIGNED SHORT
 Word
UNSIGNED SHORT INT
 Word
SHORT
 SmallInt
SHORT INT
 SmallInt
DWORD
 LongInt
LONG
 LongInt
LONG INT
 LongInt
UNSIGNED LONG
 LongInt
UNSIGNED LONG INT
 LongInt
CHAR
 Char
UNSIGNED CHAR
 Byte
CHAR*
 PChar
LPSTR
 PChar
PSTR
 PChar
LPWSTR
 PWideChar
PWSTR
 PWideChar
VOID*
 Pointer
BOOL
 Bool
FLOAT
 Single
DOUBLE
 Double
LONG DOUBLE
 Extended
HANDLE
 THandle
FARPROC
 TFarProc
ATOM
 TAtom
TPOINT
 TPoint
TRECT
 TRect
COLORREF
 TColorRef
OFSTRUCT
 TOFStruct
DEBUGHOOKINFO
 TDebugHookInfo
BITMAP
 TBitMap
RGBTRIPLE
 TRGBTriple
RGBQUAD
 TRGBQuad
BITMAPCOREHEADER
 TBitmapCoreHeader
BITMAPINFOHEADER
 TBitmapInfoHeader
BITMAPINFO
 TBitmapInfo
BITMAPCOREINFO
 TBitmapCoreInfo
BITMAPFILEHEADER
 TBitmapFileHeader
HANDLETABLE
 THandleTable
METARECORD
 TMetaRecord
METAHEADER
 TMetaHeader
METAFILEPICT
 TMetaFilePict
TEXTMETRIC
 TTextMetric
NEWTEXTMETRIC
 TNewTextMetric
LOGBRUSH
 TLogBrush
LOGPEN
 TLogPen
PATTERN
 TPattern
PALETTEENTRY
 TPaletteEntry
LOGPALETTE
 TLogPalette
LOGFONT
 TLogFont
ENUMLOGFONT
 TEnumLogFont
PANOSE
 TPanose
KERNINGPAIR
 TKerningPair
OUTLINETEXTMETRIC
 TOutlineTextMetric
FIXED
 TFixed
MAT2
 TMat2
GLYPHMETRICS
 TGlyphMetrics
POINTFX
 TPointFX
TTPOLYCURVE

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值