Results 1 to 2 of 2

Thread: Help with a card game

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    5

    Help with a card game

    Hey, I'm very new to VB and I'm making a card game. It is a basic trick taking game, but from the tutorials I have looked at I can't seem to get it to even draw cards to the screen. I'm using Cards32.Dll.

    Basically, all I want to do is get the cards to the screen, from there I think I can pretty much do it. Please assume I have no prior knowledge (I dont!) and that I have searched through the forums about 6 times, but only get complicated answers.

    Thanks alot,
    Dan

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    5
    How much do I need to code, I have this for the cmddeal button-

    Code:
    Private Sub cmddeal_Click()
    cdtDraw Me.hdc, DeckX - (cWidth / 2), DeckY - (cHeight / 2), BackFace, ordBacks, vbWhite
    End Sub
    and in my module I have

    Code:
    Declare Function cdtInit Lib "Cards32.Dll" (dx As Long, dy As Long) As Long
    
    Declare Function cdtDrawExt Lib "Cards32.Dll" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal dx As Long, ByVal dy As Long, ByVal ordCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
    
    Declare Function cdtDraw Lib "Cards32.Dll" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal iCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
    
    Declare Function cdtTerm Lib "Cards32.Dll" () As Long
    I have put the tick in the Cards32.dll box in the References window, what else do I need? Also, it would be much better if I could draw it to a picturebox, I know it has something to do with the hDC thing, but again, I dont have a clue.
    Last edited by SquealingPygmy; May 26th, 2004 at 08:43 PM.

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