Home > Software engineering >  About the Resource. The problem of h content change
About the Resource. The problem of h content change

Time:09-25

Modified the Resource. A few days ago the macro definition in h, because a lot of MFC controls after I deleted ID has been occupied, I have to delete his # define that sentence, no wrong; so do a lot of times before, Changed after the open problems with resource view error RC2104... I find a way to join # include Can solve, but every time I in the Resource view double-click some control, Resource. H file will appear a lot of code, leading to a huge number of macro definition, turned out to be like this: now  at present my solution is to backup Resource. H file of the text, but the original backup after I add a new control does not apply, and every time a change is very trouble, I want to know what's the problem? How to let him will not automatically macro redefine problems, thank you ~

CodePudding user response:

CodePudding user response:

redefine an error, is the belt when I double click on the create project button (I put the button title changed), then close the program, the point is not saved, the Resource. H the code will be changed, changed have redefine problems, but also can debug, there are a lot of warning, but resources to the Dialog doesn't open, don't know why this is,

CodePudding user response:

VS the IDE in don't understand the symbol on the right mouse button, choose to find all references,

CodePudding user response:

Is not recommended to modify a Resource manual. J h, Resource properties box right-click menu, select the ID Resource Symbols, then lists Resource ID, so use a hook, no use to you can delete

CodePudding user response:

Direct delete in the Resource view, don't go directly to edit the Resource, h and. Rc file,

CodePudding user response:

Separate compilation resources, according to the prompt manually change, either do not manually edit rc file
  • Related