You probably see this error:
The expression 'AddressOf' cannot be converted to "Long" because "Long" is not a delegate type.
What you probably want to do is create a delegate and then change the adab type to this delegate type. Add this to the class:
Public Delegate Sub ReadDataCallBackDelegate(ByVal nPort As Long, _
ByVal pPacketBuffer As Byte, ByVal nPacketSize As Long)
Then change your P / Invoke declaration to:
Declare Function MP4_ClientStart Lib "hikclient.dll" (ByVal pClientinfo As _
CLIENT_VIDEOINFO, ByVal abab As ReadDataCallBackDelegate) As Long
Do not delete / do not modify your ReadDataCallBack file, you still need to.
. , . VB6, VB.NET. .NET Integer, Long in VB6.