Description
Resources are GUI components such as strings and menus and bitmaps, that are used by an application. Normally resources are described in an .rc file, that is compiled by a resource compiler into a .res file, and then used by the application.
But it's also possible to place resources into a DLL, and then load the resources into an application. This particular sample is adapted from samples/ioc/notebook, and shows how bitmaps can be loaded from a DLL.
Concept
The sample creates a DLL containing bitmaps, and then uses the DLL's bitmaps in an application. The DLL is created by specifying dllbm.rc as the source for building the DLL. dllbm.rc describes the resources to be used. A stub source file is also used in building the DLL.
The resources in the DLL are accessed by use of the IDynamicLinkLibrary class. An object of the class is constructed, using the name of the DLL as the constructor argument. Then loadBitmap() is used to actually load the bitmap resources from the DLL.
Supported
Supported
Supported
