Y
yxg20803
Unregistered / Unconfirmed
GUEST, unregistred user!
vc中调用函数:
HIK_PLAYM4_API BOOL __stdcall Hik_PlayM4_SetDisplayCallBack(LONG nPort,void (CALLBACK* DisplayCBFun)(long nPort,char * pBuf,long nSize,long nWidth,long nHeight,long nStamp,long nType,long nReserved));
vc中回调函数
void (CALLBACK* DisplayCBFun)(long nPort,char * pBuf,long nSize,long nWidth,long nHeight,long nStamp,long nType,long nReserved)
***********************************************************************
转换成delphi
回调函数参数
DisplayCBFun = procedure(nPort: integer; pBuf: PChar; nSize: integer; nWidth: integer; nHeight: integer; nStamp: integer; nType: integer; nReserved: integer);
调用函数
function Hik_PlayM4_SetDisplayCallBack(nPort: integer; nDisplayCBFun: DisplayCBFun): LongBool; stdcall;
回调函数
procedure DisplayCBFun1(nPort: integer; pBuf: PChar; nSize: integer; nWidth: integer; nHeight: integer; nStamp: integer; nType: integer; nReserved: integer);stdcall;
调用:
Hik_PlayM4_SetDisplayCallBack(0,@DisplayCBFun1)
这样有问题吗,希望高手指正
错误提示:
Variable required(需求变量)
HIK_PLAYM4_API BOOL __stdcall Hik_PlayM4_SetDisplayCallBack(LONG nPort,void (CALLBACK* DisplayCBFun)(long nPort,char * pBuf,long nSize,long nWidth,long nHeight,long nStamp,long nType,long nReserved));
vc中回调函数
void (CALLBACK* DisplayCBFun)(long nPort,char * pBuf,long nSize,long nWidth,long nHeight,long nStamp,long nType,long nReserved)
***********************************************************************
转换成delphi
回调函数参数
DisplayCBFun = procedure(nPort: integer; pBuf: PChar; nSize: integer; nWidth: integer; nHeight: integer; nStamp: integer; nType: integer; nReserved: integer);
调用函数
function Hik_PlayM4_SetDisplayCallBack(nPort: integer; nDisplayCBFun: DisplayCBFun): LongBool; stdcall;
回调函数
procedure DisplayCBFun1(nPort: integer; pBuf: PChar; nSize: integer; nWidth: integer; nHeight: integer; nStamp: integer; nType: integer; nReserved: integer);stdcall;
调用:
Hik_PlayM4_SetDisplayCallBack(0,@DisplayCBFun1)
这样有问题吗,希望高手指正
错误提示:
Variable required(需求变量)