Home > Back-end >  LoadBitmap WINDOWS programming problem
LoadBitmap WINDOWS programming problem

Time:09-29

Windows program design version 5 bitmap and a block transmission of the chapter, a book about the loadbitmap () code is always can't successfully loaded bitmap
The code is as follows:
HInstance=(Lparam) (LPCREATESTRUCT) - & gt; HInstance;
HBitmap=LoadBitmap (hInstance, TEXT (" Bricks "));

I use the getlasterror () returns the value is 1814, can't find the resource file, but I'm in the resource file is Bricks. BMP
The great god, please help me to solve,

CodePudding user response:

Check hInstance is correct

CodePudding user response:

Should be correct, I follow the code books

CodePudding user response:

RC file is it?
Bricks BITMAP Bricks. BMP
You can try

CodePudding user response:

The
reference
RC file is it?
Bricks BITMAP Bricks. BMP
You can try

Boon boon, tried your method, success! Can you tell me what's going on, why put. Rc files changed is ok?
My original. Rc file is like this:
IDB_BRICKS BITMAP Bricks. BMP
  • Related