VC++ 转成 delphi 回调声明 在线等(100分)

Y

yingwei

Unregistered / Unconfirmed
GUEST, unregistred user!
以下vc++的声明怎样转成delphi中的声明?
#define DRAWFUN(x) void (CALLBACK* x)(long nPort,HDC hDc,LONG nUser)


typedef void (*LOGRECORD_CALLBACK)(char *str, void *context);
typedef int (*STREAM_READ_CALLBACK)(ULONG channelNumber, void *context);
typedef int (*STREAM_DIRECT_READ_CALLBACK)(ULONG channelNumber,void *DataBuf,DWORD Length,int FrameType,void *context);
 
typedef void (*LOGRECORD_CALLBACK)(char *str, void *context);
LOGRECORD_CALLBACK=procedure(str:pchar;context:pointer);
下同..
 
接受答案了.
 
顶部