|
-
Aug 29th, 2006, 03:59 AM
#1
Thread Starter
New Member
Using the cards.dll
First I must state that I'm absolutely a noob to VB.NET
For years I've been writing Pascal, not OOP anyway
Sorry for stupid questions then
I'm doing a school project and I'm gonna write a card game
I'm using VB 2005 Express Edition
and I use the cards.dll from Windows XP
I draw the playing cards with the CdtDrawExt() function
The program runs perfectly well when I build it into a *.exe and try to run it. However, when I use the debugger to skim through the program, I always get this 'PInvokeStackbalance' error msg. It occurs whenever the function CdtDrawExt is called. Is there anything I can do to solve the problem?
Besides, the program redraws everything when I diminish it and restore it again, so that everything I drew with CdtDrawExt disappears. I tried to solve it by using Private Sub Form1_Paint() Handles MyBase.Paint, so that the program will redraw my cards whenever the program refreshes itself. It temporarily solves the program, but the program surely would be clumsy when there are too many cards. Is there any other method to do the same thing?
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
|