Looking for work? Check out our jobs area.

Card Game Basics with Cards.dll 1.1

Submitted By: bradb_jr
Rating: starstarstarstar (Rate It)
Share: Share By Email By Email

This card demo/tutorial covers most of the major things you
might need when beginning a new card game. 1. How to call the
Cards.dll/Cards32.dll 2. How to use the functions in the .dll
file 3. How to initialize your deck(s) 4. How to shuffle cards
I didn't include how to find out which card was clickedHow to
find out which card is clicked.because it is totally dependant
on the positioning and offset of the cards on the form.


NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot


Details

File Name:
26981.zip
Product homepage:
Order page:
Languages:
Basic
Platforms:
Unknown
Release date:
4/15/2003
License:
Unknown
Size:
155 KB
Price/Fee (US$):
Unknown
Number of downloads:
10108

Comments (13)

Helpfull starstarstarstar   Posted on Saturday, August 09, 2003

This has pointed in the right direction

Everything you need to start using cards.dll. starstarstarstarstar   Posted on Tuesday, August 12, 2003

Excellent. Exactly what I was looking for. Thanks.

Programemr (Not rated)   Posted on Saturday, November 01, 2003

Great. Is awesome for vb6 & earlier.
But useless for .net and newer.

Though some portions are learnable, its better to go with other examples if one has to start from scratch, than to use this one.

Great example starstarstarstarstar   Posted on Tuesday, November 25, 2003

Great for win32 applcations

Well Done - Right to the point starstarstarstarstar   Posted by: Erik Soeder on Friday, July 16, 2004

This was just what I was looking for on how to use the CARD.DLL library in my VB apps.

Thanks...

Thanks for the Feedback (Not rated)   Posted on Friday, September 03, 2004

Thanks for the comments.
Please rate and comment if you download.

ok code, but..... starstarstar   Posted on Monday, July 04, 2005

The example works good but on vb6 if you minimise the window all of the cards disappear. :s........ same if you move another window over the card game.

does anyone have this problem???
any suggestions??????

Good. starstarstarstar   Posted on Thursday, September 01, 2005

The intention of this demonstration program was not to show the best ways of presentation for the card games, it was only to show how to use the dll in games, and therefore the author has done well in doing so.

The simplest way to avoid this erasing problem is to use subs with names like "ShowHands" or "DrawDeck" to be ran every time an event happens to the form.
Such as activate, paint, maximize, etc.

In those subs you redraw all cards on the form. Another way would be to use images.
Put 53 invisible images on the form. One with each card in it, and one with the back style.
Then set preplaced images in the "Hands" position to equal the other images.

limited in functionality starstarstar   Posted by: Jacobi on Thursday, December 01, 2005

Can additional functions be include to test for values, suits, placeholders so that drag and discards can be coded? Also block/unblock and enable/disable cards from play?

Reply to previous question (Not rated)   Posted on Wednesday, December 28, 2005

Yes. The easiest way to do this would be to create a new type. As so:
Type Card
Index as Integer
Value as Integer
Suit as String
Locked as Boolean
etc....
End Type

Then, when assigning your values you would do this:

in a for next loop
TheDeck(i).Index = your data.....
TheDeck(i).value = your data.....
TheDeck(i).Locked = your data.....

Then you also reassign these values while shuffling, dealing etc, and you can read all of the information at any time to determine the Cards info.
Thanks for the comments. Keep them coming

Best Cards dll tutorial on the planet! starstarstarstarstar   Posted by: NorthRock of northrockmuic.com on Sunday, January 21, 2007

To All...
Go Figure!
You just can't get this info anywhere.
When you think you may have found a good tutorial, they usually turn out lacking what is needed to get you going.
Card Game Basics with Cards.dll 1.1 is right on.
We need more tuts like this one throughout all aspects of Visual Basic!
NorthRock

How to Add??? star   Posted by: coagantus on Monday, March 23, 2009

Hi,
looking nice features in this dll. but i have an error when add this into my C# project.please tell me how to add this in my project...

Your silly starstarstarstarstar   Posted by: OMG OMG on Friday, October 16, 2009

Hey, stupid. It's written for VB 6.

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.