|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionThe Cards.dll includes bitmaps of playing cards as resources. It can be useful for developing card games. Using the codeThere 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 HBITMAP HistoryThis is my first update. Suggestions are well accepted!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||