再次请教一下xiaopei 坛友,这个vc结构如何转成delphi?50(50分)

  • 主题发起人 主题发起人 psynet123
  • 开始时间 开始时间
P

psynet123

Unregistered / Unconfirmed
GUEST, unregistred user!
函数名: LONG &nbsp;MP4_ClientStart(PCLIENT_VIDEOINFO pClientInfo,<br> &nbsp; &nbsp; void(CALLBACK *ReadDataCallBack)(DWORD dwClientDescriptor,<br> &nbsp; &nbsp; UCHAR *pPacketBuffer,<br> &nbsp; &nbsp; DWORD dwPacketSize,<br> &nbsp; &nbsp; DWORD dwFrameType,<br> &nbsp; &nbsp; VOID *pContext),<br> &nbsp; &nbsp; VOID *pContext)
 
//还是一样的。<br>type TReadDataCallBack = procedure (dwClientDescriptor:DWORD; pPacketBuffer:pChar; dwPacketSize, dwFrameType:DWORD; pContext:Pointer); stdcall;<br>// 注,PCLIENT_VIDEOINFO是一个自定义结构指针类型。你这里没有说出这个类型是如何的,所以我这里也没办法转。pClientInfo:PCLIENT_VIDEOINFO这一句我只能给你这样的样子。<br>Function MP4_ClientStart(pClientInfo:PCLIENT_VIDEOINFO; ReadDataCallBack:TReadDataCallBack; pContext:Pointer):LongWord; cdecl; external 'DllName.dll';<br><br>//当然还是要定义一个回调函数了。<br>procedure _ReadDataCallBack(dwClientDescriptor:DWORD; pPacketBuffer:pChar; dwPacketSize, dwFrameType:DWORD; pContext:Pointer); stdcall;<br>begin<br>&nbsp; ......<br>end;
 
o ,这样啊,谢谢
 
后退
顶部