Cards

CardLib

CardLib

(How to use cards.dll, Part 3)

Updated 14th Jul 2005

 
  • Fixed bug in Cardlib's CardRgnMouse.cpp which caused cardgames to hang when a stack was clicked (only occurred when compiled with VC7.0+)

Introduction

The previous two tutorials in this series concentrated on accessing the playing-card bitmap images from cards.dll, and demonstrated how to simply draw a playing-card into a window.

CardLib Reference

CardLib Reference

CardLib User Guide

The following document describes the various C++ classes which make up the CardLib game library.

Cards.dll direct bitmap access

Cards.dll direct bitmap access

The first tutorial I wrote about cards.dll described how to use the exported card-drawing functions (cdtInit, cdtDraw etc). This tutorial will take a different approach to card drawing. Instead of calling the card-functions, I will show you how to directly access the bitmap resources stored inside cards.dll.

Small card pic

Using cards.dll API

Using cards.dll API

The aim of this article is to describe exactly how to use cards.dll, the dynamic link library that has shipped with all versions of windows since version 3.0. This library contains all of the playing card bitmapped images that games such as Windows Solitare use to display their graphics.

Subscribe to RSS - Cards