Cards.dll
-
how to work with cards.dll
-
how to work with cards.dll
Get a resource explorer (search the web for one) to find out which resources are contained in the DLL. If you refer to the DLL for the Solitaire game shipped with older Windows versions it will contain only bitmaps. Then load the DLL into the address space of your application using the LoadLibrary function (Windows)[^]. Finally use the LoadBitmap function (Windows)[^] to get a handle for each bitmap passing the IDs found with the resource explorer converted using
MAKEINTRESOURCE
. For other types of resources see FindResource function (Windows)[^] and GetProcAddress function (Windows)[^] for exported functions. -
how to work with cards.dll
-
The article is out of date there is also a 32bit version of the DLL kicking around from Win98 and XP. ReactOS basically duplicated most of the DLL as it is reasonably trivial ReactOS: dll/win32/cards/cards.c Source File[^] Find and download free deck of cards images, bind it all in Visual Studio and you have your own :-)
In vino veritas
-
The article is out of date there is also a 32bit version of the DLL kicking around from Win98 and XP. ReactOS basically duplicated most of the DLL as it is reasonably trivial ReactOS: dll/win32/cards/cards.c Source File[^] Find and download free deck of cards images, bind it all in Visual Studio and you have your own :-)
In vino veritas