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


    Delphi 数据类型 C/C++
    ShorInt 8位有符号整数 char
    Byte 8位无符号整数 BYTE,unsigned short
    SmallInt 16位有符号整数 short
    Word 16位无符号整数 unsigned short
    Integer,LongInt 32位有符号整数 int,long
    Cardinal,LongWord/DWORD 32位无符号整数 unsigned long
    Int64 64位有符号整数  _int64
    Single 4字节浮点数 float
    *Real48 6字节浮点数  
    Double 8字节浮点数 double
    *Extended 10字节浮点数 long double
    Currency 64位货币类型  
    TDate/TDateTime 8字节日期/时间  
    Variant,OleVariant 16字节可变类型 VARIANT,^Variant,^OleVariant
    Char,AnsiChar 1字节字符 char
    WideChar 2字节字符 WCHAR
    *ShortString 短字符串  
    AnsiString/String 长字符串 ^AnsiString
    WideString 宽字符串 ^WideString
    PChar,PAnsiChar NULL结束的字符串 char*
    PWideChar NULL结束的宽字符串 LPCWSTR
    Boolean,ByteBool 1字节布尔类型 任何1字节
    WordBool 2字节布尔类型 任何2字节
    BOOL,LongBool 4字节布尔类型 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


  • 相关阅读:
    poj3111 K Best 最大化平均值,二分
    cd732D Exams 二分
    cf448D Multiplication Table 二分
    hdu2199,double二分
    hdu3015,poj1990树状数组
    Codeforces Round #595 (Div. 3) D2Too Many Segments,线段树
    C#学习
    C#中单例的双重锁定模式
    C# HashSet 用法、Hashtable用法
    如何阅读他人的项目源代码程序
  • 原文地址:https://www.cnblogs.com/del/p/981563.html
Copyright © 2020-2023  润新知