I'm trying to load a bitmap in my dll. I have the resource defined and I've got the bitmap included in my project.
If I do this I can use LoadLibrary and access the bitmap using LoadBitmap from my executable however I'm trying to load the bitmap in my dll itself to use in my WM_PAINT functions but alas it doesn't load.
I've defined the bitmap as:Code:case WM_CREATE:
{
grid = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(ID_GRID));
if(grid == NULL)
MessageBox(hwnd,"Unable to load grid.bmp!!","Error",MB_OK);
return 0;
}
ID_GRID BITMAP "grid.bmp"
ID_GRID is defined in the resource header as #define ID_GRID 5000