News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Problem with LoadBitmap

Started by lamer, April 23, 2005, 02:11:04 PM

Previous topic - Next topic

lamer

Hi all!
I am puzzled with LoadBitmap function.
There is a bitmap resource with ID=100
If I create window by CreateWindow - everything is OK, the LoadBitmap works normaly.
But if I use DialogBoxParam, that is, create it from dialog resource - the LoadBitmap just refuses to work, each time returns 0.
Why? :(
GetLastError returns "The specified resource name cannot be found in the image file."

Thanks to all - this was just a problem with hInstance - lamer is always lamerĀ  :green2