Results 1 to 2 of 2

Thread: Using the cards.dll

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    3

    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?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Using the cards.dll

    There is a card game starter kit available for VB Express from Microsoft.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width