Home > Software engineering >  Vc6 win32 loadbitmap definition () macro problems
Vc6 win32 loadbitmap definition () macro problems

Time:09-23


At the start of the encountered such a problem, to define the second bitmap, appear problem, but I was very depressed, because if I don't define the second picture when everything is normal, but I want to load the other picture, define a second error, and the first definition is the same, but why is wrong? I check the resource. H file, is also defined. But why is wrong? I finally found my mouse pointing IDB_BACK and press F12 can switch to the resource. The definition of h macros, but pointed at the IDB_BITMAP1 F12 turned in the past, not by prompt macro is not defined, but I open the resource directly. H file to see when it is defined. Finally, I try to add a program # include "resource. H", the result is right, ah, be the problem, not to say that the # include "resource. H" is added in stdafx. H file, all function can find the resource. H header file? It seems not.

CodePudding user response:

# include to add the location of the position are other macro blocked its function?

CodePudding user response:

reference 1st floor zgl7903 response:
# include to add the location of the position are other macro blocked its function?

: no, I don't know why, now and then somehow, I just put the # include "resurce. H" this sentence from StdAfx. H in shear in the main program, finally, I try to put this sentence and put it on the StdAfx. H, and there is no problem.

CodePudding user response:

Baidu search "stdafx. H"
  • Related