" addressof " VB6 to VB.NET

Posted by johan on Stack Overflow See other posts from Stack Overflow or by johan
Published on 2010-03-17T15:11:32Z Indexed on 2010/03/17 16:01 UTC
Read the original article Hit count: 295

Filed under:
|
|
|
|

Hello, I´m having some problem to convert my VB6 project to VB.NET

I dont understan how this "addressof" function should be in VB.NET

My VB6 code:

Declare Function MP4_ClientStart Lib "hikclient.dll" (pClientinfo As CLIENT_VIDEOINFO, ByVal abab As Long) As Long



Public Sub ReadDataCallBack(ByVal nPort As Long, pPacketBuffer As Byte, ByVal nPacketSize As Long)

  If Not bSaved_DVS Then
        bSaved_DVS = True
        HW_OpenStream hChannelHandle, pPacketBuffer, nPacketSize
    End If
        HW_InputData hChannelHandle, pPacketBuffer, nPacketSize

End Sub



nn1 = MP4_ClientStart(clientinfo, AddressOf ReadDataCallBack)

© Stack Overflow or respective owner

Related posts about addressof

Related posts about vb6