调用dll 发生溢出?
原C++头
NET_DVR_API LONG __stdcall NET_DVR_RealPlay_V30(LONG lUserID, LPNET_DVR_CLIENTINFO lpClientInfo, void(CALLBACK *fRealDataCallBack_V30) (LONG lRealHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void* pUser) = NULL, void* pUser = NULL, BOOL bBlocked = FALSE);
Public Declare Function NET_DVR_RealPlay_V30 Lib "HCNETSDK.dll" (lUserID As Long, ByRef lpClientInfo As LPNET_DVR_CLIENTINFO, ByVal pProc As Long, ByRef pUser As Any, ByVal bBlocked As Boolean) As LongPublic Declare Function fRealDataCallBack_V30 Lib "HCNETSDK.dll" (ByVal lRealHandle As Long, ByVal dwDataType As Long, ByRef pBuffer As Byte, ByVal dwBufSize As Long, ByRef pUser As Any)
Dim clientinfo As LPNET_DVR_CLIENTINFO clientinfo.lChannel = 2 '; // 通道号clientinfo.lLinkMode = 0 ';clientinfo.sMultiCastIP = "234.5.6.7" '; lRealHandle = NET_DVR_RealPlay_V30(lUserID, clientinfo, Null, 1, False)