在Delphi編程中使用C語言代碼
Windows下編程的工具有很多
我現在已經參加工作大約有半年左右
Delphi適合用來開發應用程序
一:將C語言的程序編譯成DLL供Delphi調用
二:直接轉換C語言代碼到DELPHI代碼
C語言的函數格式與Delphi不同
例如:Delphi中函數function MyFunction:(intIN:integer):Bool;相應的C語言代碼就變成Bool MyFunction(int intIN);又例如procedure MyProcedure;====>void MyProcedure;采用這種方法
以下是引用片段
ABC
ACCEL
ATOM
BITMAP
BITMAPCOREHEADER
BITMAPCOREINFO
BITMAPFILEHEADER
BITMAPINFO
BITMAPINFOHEADER
BOOL
CBT_CREATEWND
CBTACTIVATESTRUCT
CHAR
CHAR*
CLIENTCREATESTRUCT
COLORREF
COMPAREITEMSTRUCT
COMSTAT
CREATESTRUCT
CTLINFO
CTLSTYLE
CTLtype
DCB
DDEAACK
DDEADVISE
DDEDATA
DDEPOKE
DEBUGHOOKINFO
DELETEITEMSTRUCT
DEVMODE
DOUBLE
DRAWITEMSTRUCT
DWORD
ENUMLOGFONT
EVENTMSG
FARPROC
FIXED
FLOAT
GLYPHMETRICS
HANDLE
HANDLETABLE
HARDWAREHOOKSTRUCT
HELPWININFO
INT
KERNINGPAIR
LOGBRUSH
LOGFONT
LOGPALETTE
LOGPEN
LONG
LONG DOUBLE
LONG INT
LPSTR
LPWSTR
MAT
MDICREATESTRUCT
MEASUREITEMSTRUCT
MENUITEMTEMPLATE
MENUITEMTEMPLATEHEADER
METAFILEPICT
METAHEADER
METARECORD
MINMAXINFO
MOUSEHOOKSTRUCT
MSG
MULTIKEYHELP
NCCALCSIZE_PARAMS
NEWTEXTMETRIC
OFSTRUCT
OUTLINETEXTMETRIC
PAINTSTRUCT
PALETTEENTRY
PANOSE
PATTERN
POINTFX
PSTR
PWSTR
RASTERIZER_STATUS
RGBQUAD
RGBTRIPLE
SEGINFO
SHORT
SHORT INT
SIZE
TEXTMETRIC
TPOINT
TRECT
TTPOLYCURVE
TTPOLYGONHEADER
UINT
UNSIGNED
UNSIGNED CHAR
UNSIGNED INT
UNSIGNED LONG
UNSIGNED LONG INT
UNSIGNED SHORT
UNSIGNED SHORT INT
VOID*
WINDOWPLACEMENT
WINDOWPOS
WNDCLASS
WORD
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/24758.html