Void* problem... Please help

1 posts, 0 answers
  1. Jeff Krantz
    Jeff Krantz avatar
    1 posts
    Member since:
    Aug 2009

    Posted 23 Aug 2009 Link to this post

    This is the converted code to VB.NET, below the errors is the original.  This happens with other Void* functions  I greatly appreciate any help...  I am just getting into VB again.

            Public Delegate Sub LightStoneManagerPacketCallback(ByRef packetPtr As LightStoneControlPacket, ByVal userData As System.Void*)

            <DllImport("LightStoneLibrary.dll")> _
            Public Shared Sub LightStoneManagerSetPacketCallback(ByVal callback As LightStoneManagerPacketCallback, ByVal userData As System.Void*)
        End Sub

    Error 2 'System.Void' can only be used in a GetType expression.
    Error 3 Comma or ')' expected.

    public unsafe delegate void LightStoneManagerPacketCallback(ref LightStoneControlPacket packetPtr, void* userData );

    public static extern unsafe void LightStoneManagerSetPacketCallback(LightStoneManagerPacketCallback callback, void* userData);

Back to Top