Delphi 与 C/C++ 数据类型对照表

 
style="POSITION: absolute; TOP: 0px; LEFT: 0px" id="aswift_0" οnlοad="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){i+='.call';setTimeout(h,0)}else if(h.match){i+='.nav';w.location.replace(h)}s.log&&s.log.push(i)}" height="60" marginheight="0" frameborder="0" width="468" allowtransparency="" name="aswift_0" marginwidth="0" scrolling="no">
Delphi数据类型C/C++
ShorInt8位有符号整数char
Byte8位无符号整数BYTE,unsigned short
SmallInt16位有符号整数short
Word16位无符号整数unsigned short
Integer,LongInt32位有符号整数int,long
Cardinal,LongWord/DWORD32位无符号整数unsigned long
Int6464位有符号整数 _int64
Single4字节浮点数float
*Real486字节浮点数 
Double8字节浮点数double
*Extended10字节浮点数long double
Currency64位货币类型 
TDate/TDateTime8字节日期/时间 
Variant,OleVariant16字节可变类型VARIANT,^Variant,^OleVariant
Char,AnsiChar1字节字符char
WideChar2字节字符WCHAR
*ShortString短字符串 
AnsiString/String长字符串^AnsiString
WideString宽字符串^WideString
PChar,PAnsiCharNULL结束的字符串char*
PWideCharNULL结束的宽字符串LPCWSTR
Boolean,ByteBool1字节布尔类型任何1字节
WordBool2字节布尔类型任何2字节
BOOL,LongBool4字节布尔类型BOOL
注:有*前缀的是向前兼容类型;有^前缀的是C++Builder特有类型。


C/C++Delphi
ABCTABC
ACCELTAccel
ATOMTAtom
BITMAPTBitMap
BITMAPCOREHEADERTBitmapCoreHeader
BITMAPCOREINFOTBitmapCoreInfo
BITMAPFILEHEADERTBitmapFileHeader
BITMAPINFOTBitmapInfo
BITMAPINFOHEADERTBitmapInfoHeader
BOOLBool
CBT_CREATEWNDTCBT_CreateWnd
CBTACTIVATESTRUCTTCBTActivateStruct
CHARChar
CHAR*PChar
CLIENTCREATESTRUCTTClientCreateStruct
COLORREFTColorRef
COMPAREITEMSTRUCTTCompareItemStruct
COMSTATTComStat
CREATESTRUCTTCreateStruct
CTLINFOTCtlInfo
CTLSTYLETCtlStyle
CTLtypeTCtltype
DCBTDCB
DDEAACKTDDEAck
DDEADVISETDDEAdvise
DDEDATATDDEData
DDEPOKETDDEPoke
DEBUGHOOKINFOTDebugHookInfo
DELETEITEMSTRUCTTDeleteItemStruct
DEVMODETDevMode
DOUBLEDouble
DRAWITEMSTRUCTTDrawItemStruct
DWORDLongInt
ENUMLOGFONTTEnumLogFont
EVENTMSGTEventMsg
FARPROCTFarProc
FIXEDTFixed
FLOATSingle
GLYPHMETRICSTGlyphMetrics
HANDLETHandle
HANDLETABLETHandleTable
HARDWAREHOOKSTRUCTTHardwareHookStruct
HELPWININFOTHelpWinInfo
INTInteger
KERNINGPAIRTKerningPair
LOGBRUSHTLogBrush
LOGFONTTLogFont
LOGPALETTETLogPalette
LOGPENTLogPen
LONGLongInt
LONG DOUBLEExtended
LONG INTLongInt
LPSTRPChar
LPWSTRPWideChar
MAT2TMat2
MDICREATESTRUCTTMDICreateStruct
MEASUREITEMSTRUCTTMeasureItemStruct
MENUITEMTEMPLATETMenuItemTemplate
MENUITEMTEMPLATEHEADERTMenuItemTemplateHeader
METAFILEPICTTMetaFilePict
METAHEADERTMetaHeader
METARECORDTMetaRecord
MINMAXINFOTMinMaxInfo
MOUSEHOOKSTRUCTTMouseHookStruct
MSGTMsg
MULTIKEYHELPTMultiKeyHelp
NCCALCSIZE_PARAMSTNCCalcSize_Params
NEWTEXTMETRICTNewTextMetric
OFSTRUCTTOFStruct
OUTLINETEXTMETRICTOutlineTextMetric
PAINTSTRUCTTPaintStruct
PALETTEENTRYTPaletteEntry
PANOSETPanose
PATTERNTPattern
POINTFXTPointFX
PSTRPChar
PWSTRPWideChar
RASTERIZER_STATUSTRasterizer_Status
RGBQUADTRGBQuad
RGBTRIPLETRGBTriple
SEGINFOTSegInfo
SHORTSmallInt
SHORT INTSmallInt
SIZETSize
TEXTMETRICTTextMetric
TPOINTTPoint
TRECTTRect
TTPOLYCURVETTTPolyCurve
TTPOLYGONHEADERTPolygonHeader
UINTWord
UNSIGNEDWord
UNSIGNED CHARByte
UNSIGNED INTWord
UNSIGNED LONGLongInt(DWORD)
UNSIGNED LONG INTLongInt
UNSIGNED SHORTWord
UNSIGNED SHORT INTWord
VOID*Pointer
WINDOWPLACEMENTTWindowPlacement
WINDOWPOSTWindowPos
WNDCLASSTWndClass
WORDWord
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值