RSS订阅 | 匿名投稿
您的位置:网站首页 > 常用 > 正文

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

作者:admin 来源:未知 日期:2010/1/28 13:11:33 人气: 标签:

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

读完这篇文章后,您心情如何?
0
0
0
0
0
0
0
0
本文网址: