LoadBitmap not working

  • Thread starter Thread starter Gurunama
  • Start date Start date
G

Gurunama

Guest
I have the following code:

static HBITMAP hbitmap3;

hInstance = ((LPCREATESTRUCT)lParam)->hInstance;
hbitmap3 = LoadBitmap(hInstance, TEXT("shadow2.bmp"));


The hbitmap3 returns zero.


From the rc file:

IDB_BITMAP3 BITMAP "shadow2.bmp"

From Resource.h:

#define IDB_BITMAP3 131


Thanks in advance.

Sincerely

Continue reading...
 
Back
Top