This is a migrated thread and some comments may be shown as answers.

[Solved] Void* problem... Please help

0 Answers 79 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff Krantz
Top achievements
Rank 1
Jeff Krantz asked on 24 Aug 2009, 04:53 AM
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);

Tags
Code Converter
Asked by
Jeff Krantz
Top achievements
Rank 1
Share this question
or