Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Removing resource.hm

Removing resource.hm

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++javascripttoolsquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jack Puppy
    wrote on last edited by
    #1

    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."

    W N 2 Replies Last reply
    0
    • J Jack Puppy

      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."

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      Delete and re-create the resource file, at least thats how I get it to work when loading problematic files into VC6.

      1 Reply Last reply
      0
      • J Jack Puppy

        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."

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        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 ids. 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 mentioned

        Jack 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

        J 1 Reply Last reply
        0
        • N Nibu babu thomas

          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 ids. 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 mentioned

          Jack 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

          J Offline
          J Offline
          Jack Puppy
          wrote on last edited by
          #4

          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."

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups