|
60精币
DLL文件中的函数定义如下:
NET_DVR_SendWithRecvRemoteConfigLONG NET_DVR_SendWithRecvRemoteConfig(
LONG lHandle, void *lpInBuff, DWORD dwInBuffSize, void *lpOutBuff, DWORD dwOutBuffSize, DWORD *dwOutDataLen);在易里面我是如下定义的DLL:
这个指针参数,我看C#调用这个DLL的时候是如下语句:
dwState = NET_DVR_SendWithRecvRemoteConfig(m_lSetCardCfgHandle, &sSearchUserCond, sizeof(sSearchUserCond), &lpOutBuff, sizeof(lpOutBuff), &dwOutDataLen);
用的是取址符&,所以我在易里也用:取变量地址,如下:
NET_DVR_SendWithRecvRemoteConfig (程序集_长链接句柄, 取变量地址 (inbuffer), 1024, 取变量地址 (outbuffer), 2048,取变量地址(len))
但是程序却崩溃了,求教,在易里面应该如何写????
|
|