![]() |
General Programming »
DLLs & Assemblies »
General
Intermediate
Playing Cards DLLBy eugiA DLL which includes playing cards as bitmpap resources which a developer can use in his/her application |
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, MFC, Dev
|
||||||||
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

The Cards.dll includes bitmaps of playing cards as resources. It can be useful for developing card games.
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 //FILE #include "Cards.h" //LOAD THE DLL HMODULE <code>hModule = LoadLibrary("Path\\To\\Cards.dll"); //LOAD THE BITMAP HBITMAPhBitmpap= LoadBitmap(hModule,MAKEINTRESOURCE(IDB_H01))); //IDB_H01 IS THE ACE OF HEARTS, WHICH CORRESPONDS TO 4001 //FREE THE DLL FreeLibrary(hModule); //FOR MFC, IT IS RECOMMENDED TO USE //AfxLoadLibrary(...) and AfxFreeLibrary (...)
This is my first update. Suggestions are well accepted!
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 9 Aug 2003 Editor: |
Copyright 2003 by eugi Everything else Copyright © CodeProject, 1999-2009 Web22 | Advertise on the Code Project |