Hi, I am trying to load a bitmap as the background of my first windows app. So I tried using LoadBitmap() but I am using it wrong. I set the first parameter to "hwnd", and the second I set to the name of a pointer that contains the text: "C://a_bitmap.bmp". But this is not the type of pointer it wants. But the documentation specifically states:
_________________________________________
HBITMAP LoadBitmap(
HINSTANCE hInstance, // handle of application instance
LPCTSTR lpBitmapName // address of bitmap resource name
);
Parameters
hInstance
Identifies the instance of the module whose executable file contains the bitmap to be loaded.
lpBitmapName
Points to a null-terminated string that contains the name of the bitmap resource to be loaded.
________________________________________
Can someone help?![]()



LinkBack URL
About LinkBacks



