SebastianStricker
Programmer
Hello,
I just wanted to make an MFC-extension DLL out of some source code that was included in a common SDI-project. I put the files to the new DLL-project an exported the classes via AFX_EXT_CLASS (don't know if this is the best solution but it works).
I also added the old ressources (some bitmaps) to the new DLL project, but they aren't loaded correctly. I used this to load the ressource called "IDB_RESIZE":
m_hResizeBitmap = ::LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDB_RESIZE), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR|LR_LOADTRANSPARENT);
I guess I need another call to get the correct instance handle since I'm now in a DLL-project(?). Can anyone help me?
Thanks, Sebastian.
I just wanted to make an MFC-extension DLL out of some source code that was included in a common SDI-project. I put the files to the new DLL-project an exported the classes via AFX_EXT_CLASS (don't know if this is the best solution but it works).
I also added the old ressources (some bitmaps) to the new DLL project, but they aren't loaded correctly. I used this to load the ressource called "IDB_RESIZE":
m_hResizeBitmap = ::LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDB_RESIZE), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR|LR_LOADTRANSPARENT);
I guess I need another call to get the correct instance handle since I'm now in a DLL-project(?). Can anyone help me?
Thanks, Sebastian.