Hey there, just asking how I could implement a scoring system to add up the totals of the player and dealer to see who has the highest number for a game of blackjack. Currently not started on the computer controlled dealer but just wondering how I woul add the total value of the cards together while using cards.dll

VB Code:
  1. Private Sub Form_Load()
  2. Randomize
  3. End Sub
  4. Private Sub CMD_Deal_Click()
  5. cdtDraw Me.hdc, 370, 75, Int((51 - 0 + 1) * Rnd + 0), 0, vbWhite
  6. cdtDraw Me.hdc, 300, 75, Int((51 - 0 + 1) * Rnd + 0), 0, vbWhite
  7. cdtDraw Me.hdc, 370, 300, Int((51 - 0 + 1) * Rnd + 0), 0, vbWhite
  8. cdtDraw Me.hdc, 300, 300, Int((51 - 0 + 1) * Rnd + 0), 0, vbWhite
  9.  
  10.  
  11. End Sub
  12.  
  13. Private Sub CMD_Hit_Click()
  14. Static Xpos As Long
  15. If Xpos = 0 Then
  16. Xpos = 300
  17. Else: Xpos = Xpos + 25
  18. End If
  19.  
  20. cdtDraw Me.hdc, Xpos, 300, Int((51 - 0 + 1) * Rnd + 0), 0, vbWhite
  21.  
  22. End Sub
  23.  
  24.  
  25. Private Sub CMD_Main_Menu_Click()
  26. MainMenu.Show
  27. Unload Me
  28. End Sub

IT got me stumped and also to recalculate the total after each time the hit command is pressed

Any help is appreciated