zoukankan      html  css  js  c++  java
  • 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


  • 相关阅读:
    Ubuntu Server 17.04安装GNOME指令
    docker应用笔记
    无线网络连接配置
    bind9的一些配置
    关于linux下的文件权限
    命令行模式下设置时区
    Linux下SSL证书申请以及配置到Nginx
    编译安装Nginx到Linux
    网页画流程图
    为什么Java字符串是不可变对象?
  • 原文地址:https://www.cnblogs.com/del/p/981563.html
Copyright © 2011-2022 走看看