The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: lamer on April 23, 2005, 02:11:04 PM

Title: Problem with LoadBitmap
Post by: lamer on April 23, 2005, 02:11:04 PM
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