<!-- Add the rest of your HTML here -->
The Cards.dll includes bitmaps of playing cards as resources. It can be useful for developing card games.
Using the code
There was actually no coding involved in producing the DLL, as a matter of fact, it is just a convenient way of storing a large number of bitmaps that could be used in several programs. The code section below is an example of how to load a bitmap from Cards.dll.
//INCLUDE THE CARDS.h FILE FOUND IN THE ZIP CODE TO USE THE DEFINES,
//OTHERWISE YOU CAN USE THE RESOURCE NUMBERS, AS EXPLAINED IN THE .H
//LOAD THE DLL
HMODULE <code>hModule</CODE> = LoadLibrary("Path\\To\\Cards.dll");
//LOAD THE BITMAP
HBITMAP <CODE>hBitmpap</CODE> =
//IDB_H01 IS THE ACE OF HEARTS, WHICH CORRESPONDS TO 4001
//FREE THE DLL
//FOR MFC, IT IS RECOMMENDED TO USE
//AfxLoadLibrary(...) and AfxFreeLibrary (...) <P></P>
This is my first update. Suggestions are well accepted!