各路高手 请赐教!!数据类型问题(50分)

  • 主题发起人 主题发起人 石头强
  • 开始时间 开始时间

石头强

Unregistered / Unconfirmed
GUEST, unregistred user!
这几天着急开发一个IC卡系统
动态连接库用VC编的
我要用Delphi调用
但是遇到数据类型不匹配问题
各位高手,烦请指教Delphi何VC之间的数据类型匹配对应的
最好有个列表
应为时间紧迫,本人不能再去翻大部头了,
哎,水平太差 只能多留点汗了 这里分不多 还望见谅
 
对VC不熟悉,帮你UP一下
在Delphi的DLL中,一般字符型用pChar,数字型用Single,可以供别的开发语言(如PB、Foxpro等)调用
 
恐怕不好办,我以前见过这方面的文章,很长,有好多地方需要注意,而且LIB库也需要重新
制作(这个简单),要不,你把VC中的函数或过程原型贴出来让大家看看吧
 
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 -> do
uble
LONG do
UBLE -> 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 -> TTTPolyCurve
TTPOLYGONHEADER -> TPolygonHeader
ABC -> TABC
RASTERIZER_STATUS -> TRasterizer_Status
MOUSEHOOKSTRUCT -> TMouseHookStruct
CBTACTIVATESTRUCT -> TCBTActivateStruct
HARDWAREHOOKSTRUCT -> THardwareHookStruct
EVENTMSG -> TEventMsg
WNDCLASS -> TWndClass
MSG -> TMsg
MINMAXINFO -> TMinMaxInfo
SEGINFO -> TSegInfo
ACCEL -> TAccel
PAINTSTRUCT -> TPaintStruct
CREATESTRUCT -> TCreateStruct
CBT_CREATEWND -> TCBT_CreateWnd
MEASUREITEMSTRUCT -> TMeasureItemStruct
DRAWITEMSTRUCT -> TDrawItemStruct
DELETEITEMSTRUCT -> TDeleteItemStruct
COMPAREITEMSTRUCT -> TCompareItemStruct
WINDOWPOS -> TWindowPos
WINDOWPLACEMENT -> TWindowPlacement
NCCALCSIZE_PARAMS -> TNCCalcSize_Params
SIZE -> TSize
MENUITEMTEMPLATEHEADER -> TMenuItemTemplateHeader
MENUITEMTEMPLATE -> TMenuItemTemplate
DCB -> TDCB
COMSTAT -> TComStat
MDICREATESTRUCT -> TMDICreateStruct
CLIENTCREATESTRUCT -> TClientCreateStruct
MULTIKEYHELP -> TMultiKeyHelp
HELPWININFO -> THelpWinInfo
CTLSTYLE -> TCtlStyle
CTLtype -> TCtltype
CTLINFO -> TCtlInfo
DDEADVISE -> TDDEAdvise
DDEDATA -> TDDEData
DDEPOKE -> TDDEPoke
DDEAACK -> TDDEAck
DEVMODE -> TDevMode
 

Similar threads

回复
0
查看
978
不得闲
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部