I have created an MFC extension DLL in MSVC++ 5.0, which contains a few classes, dialogs, and bitmaps. I have exported one of the classes, and this class calls another non-exported dialog in the dll. The dialog works fine, but the buttons (which are supposed to be bitmap buttons) do not display their bitmaps. The only time the bitmaps DO show up are when I define a bitmap resource with the same name in the .exe module. How can I specify that I want to load the bitmaps from the DLL?
This is a sample of the code I use to attach the bitmap to the button:
This code worked fine before it was segregated into a DLL, and it works fine when the .EXE contains an IDB_OK_BITMAP resource.