This question is locked. New answers and comments are not allowed.
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 );
[DllImport("LightStoneLibrary.dll")]
public static extern unsafe void LightStoneManagerSetPacketCallback(LightStoneManagerPacketCallback callback, void* userData);