CPJNCards v1.01 A C++ wrapper class for "Cards.dll"
(Obsolete)
Welcome to CPJNCards, a simple C++ wrapper for "Cards.dll". This DLL
provides the functionality which the cards games supplied with Windows such as Solitaire
and FreeCell use to draw their playing cards. The API exposed from "Cards.dll"
is semi-documented and was originally described in an MSDN article in 1996 by Dave
Edson. Online examples which show you how to use the DLL from C# are available at
http://www.codeproject.com/csharp/drawcardscp1.asp
and http://www.catch22.net/tuts/cardtut.asp.
This class provides a very simply C++ wrapping of the API to get you started writing
your Playing cards game in your C++/ MFC apps.
Features
- Simple and clean C++ interface.
- The code looks after all the details of loading and obtaining the function
pointers and exposes a simple set of functions via the class. Internally the
class loads the DLL and uses GetProcAddress calls.
Copyright
- You are allowed to include the source code in any product (commercial, shareware,
freeware or otherwise) when your product is released in binary form.
- You are allowed to modify the source code in any way you want except you
cannot modify the copyright details at the top of each module.
- If you want to distribute source code with your application, then you are
only allowed to distribute versions released by the author. This is to maintain
a single distribution point for the source code.
The enclosed zip file contains the CPJNCards
source code and a simple dialog based application which exercises the class.
Updates
28 August 2016
- Please note that cards.dll is not present on versions of Windows since Windows
7. As such I have discontinued development of this code and it is considered
obsolete.
V1.01 (22 December 2006)
- Minor updates to the sample app to allow it to compile cleanly on VC 2005
- Code now uses newer C++ style casts instead of C style casts.
V1.0 (12 March 2006)