|
-
Jan 7th, 2003, 04:59 PM
#1
Thread Starter
New Member
Cards.DLL & VB.NET
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|