Sunday, August 2, 2009

How can I use external DLL's BMP and other resources in my C++ source code?

Usage of BMP resources (that are stored in a common dll file) in a C++ sourcecode (under Visual Studio 8). I think something like this: "shell32.dll,-21813"

How can I use external DLL's BMP and other resources in my C++ source code?
1) Use LoadLibraryEx using the LOAD_LIBRARY_AS_DATAFILE flag.


2) Then you can call FindResource or FindResourceEx to locate the BMP you want.


3) Then call LoadResource to load it into memory.





Hope this helps.


No comments:

Post a Comment