Removing resource.hm
-
I've inherited an old vc++ 6 project, and loaded it into 2005. Cleaning up the project, I tried removing a file called resource.hm, which contained the following line:
#define HIDC_TEST_LIST 0x80d43575 // IDD_TEST_DIALOG [Neutral]
The IDD_TEST_DIALOG dialog does not exist in the project, nor are any of the resources defined as Neutral. I also removed the following lines from the .rc file:// Generated Help ID header file #define APSTUDIO_HIDDEN_SYMBOLS #include "resource.hm" #undef APSTUDIO_HIDDEN_SYMBOLS
When I build, the lines are auto-generated in the resource script, and an empty resource.hm is created, causing a compile error. From MSDN: Your project's resource.hm file will only be created by the development environment when one or more dialog boxes have controls and when those controls have HelpID properties set to True in the Properties Window. I scanned the .rc script for any references of HIDC_TEST_LIST, and none were found. I scanned for other HelpIDs, nothing. How in the heck do I get rid of this thing? Montreal great Guy Lafleur, quoted by CBC on being mugged while vacationing recently in Buenos Aires: "I didn't have any time to react before I got a sucker-punch in the eye. It was like one of the players from the Bruins." -
I've inherited an old vc++ 6 project, and loaded it into 2005. Cleaning up the project, I tried removing a file called resource.hm, which contained the following line:
#define HIDC_TEST_LIST 0x80d43575 // IDD_TEST_DIALOG [Neutral]
The IDD_TEST_DIALOG dialog does not exist in the project, nor are any of the resources defined as Neutral. I also removed the following lines from the .rc file:// Generated Help ID header file #define APSTUDIO_HIDDEN_SYMBOLS #include "resource.hm" #undef APSTUDIO_HIDDEN_SYMBOLS
When I build, the lines are auto-generated in the resource script, and an empty resource.hm is created, causing a compile error. From MSDN: Your project's resource.hm file will only be created by the development environment when one or more dialog boxes have controls and when those controls have HelpID properties set to True in the Properties Window. I scanned the .rc script for any references of HIDC_TEST_LIST, and none were found. I scanned for other HelpIDs, nothing. How in the heck do I get rid of this thing? Montreal great Guy Lafleur, quoted by CBC on being mugged while vacationing recently in Buenos Aires: "I didn't have any time to react before I got a sucker-punch in the eye. It was like one of the players from the Bruins."Delete and re-create the resource file, at least thats how I get it to work when loading problematic files into VC6.
-
I've inherited an old vc++ 6 project, and loaded it into 2005. Cleaning up the project, I tried removing a file called resource.hm, which contained the following line:
#define HIDC_TEST_LIST 0x80d43575 // IDD_TEST_DIALOG [Neutral]
The IDD_TEST_DIALOG dialog does not exist in the project, nor are any of the resources defined as Neutral. I also removed the following lines from the .rc file:// Generated Help ID header file #define APSTUDIO_HIDDEN_SYMBOLS #include "resource.hm" #undef APSTUDIO_HIDDEN_SYMBOLS
When I build, the lines are auto-generated in the resource script, and an empty resource.hm is created, causing a compile error. From MSDN: Your project's resource.hm file will only be created by the development environment when one or more dialog boxes have controls and when those controls have HelpID properties set to True in the Properties Window. I scanned the .rc script for any references of HIDC_TEST_LIST, and none were found. I scanned for other HelpIDs, nothing. How in the heck do I get rid of this thing? Montreal great Guy Lafleur, quoted by CBC on being mugged while vacationing recently in Buenos Aires: "I didn't have any time to react before I got a sucker-punch in the eye. It was like one of the players from the Bruins."Well I was able to recreate your problem. Then I was able to fix it too. One or more of the controls in the dialog could be having
help id
s. Set this property(Help ID) to false. Each control in a dialog has got this property. Once you set this to false the lines that you mentionedJack Squirrel wrote:
// Generated Help ID header file #define APSTUDIO_HIDDEN_SYMBOLS #include "resource.hm" #undef APSTUDIO_HIDDEN_SYMBOLS
will not be regenerated. This should fix the errors that come up. Help ids are located in
resource.hm
. Once you delete the above statement you are bound to get errors because the file is no more included and the symbols are undefined.
Nibu thomas Software Developer
-
Well I was able to recreate your problem. Then I was able to fix it too. One or more of the controls in the dialog could be having
help id
s. Set this property(Help ID) to false. Each control in a dialog has got this property. Once you set this to false the lines that you mentionedJack Squirrel wrote:
// Generated Help ID header file #define APSTUDIO_HIDDEN_SYMBOLS #include "resource.hm" #undef APSTUDIO_HIDDEN_SYMBOLS
will not be regenerated. This should fix the errors that come up. Help ids are located in
resource.hm
. Once you delete the above statement you are bound to get errors because the file is no more included and the symbols are undefined.
Nibu thomas Software Developer
Nibu thomas wrote:
One or more of the controls in the dialog could be having help ids.
Yep. I searched for HID* in the .rc file and didn't find anything. I thought it might be corrupted, since if a control was set to true, it's label should be appearing in the .hm file. I then went through each dialog (100+) in the resource editor, selecting all controls and ensuring the HelpID was false. One of the dialogs had it set to true for all controls, but all of the controls were unlabelled. (set to their ID numbers) I created a new project, set the HelpID flag to true, and changed the ID to a number. (1001) Sure enough it failed to compile. I tried changing the ID to TEST, and it wrote the help ID in the .hm as HTEST. I guess the HelpID writer doesn't like IDs starting with numbers - H1001 should be a valid label for a #define. Montreal great Guy Lafleur, quoted by CBC on being mugged while vacationing recently in Buenos Aires: "I didn't have any time to react before I got a sucker-punch in the eye. It was like one of the players from the Bruins."