I'm new to game programming in VB.NET. I need some help porting a card game from VB6 to VB.NET. I'd appreciate any help you can give.
I get an error the first time I call cdtInit. The error says "Object reference not set to an instance of an object".
I declare the cdtInit function in a global module & call it from my main form.load event.
Declaration is:
Declare Function cdtInit Lib "Cards.Dll" (ByVal dX As Long, ByVal dY As Long) As Long
Call is:
Dim X As Long, Y As Long
cdtInit(X, Y)
This sound so simple. What am I doing wrong?
