Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi!
I have to manual edit a *.hm file which contains all the help ID´s

We have "inherited" a punch of code with dialog resources and help files.
The dialog resources (.rc, .h,) had to be edited by hand, so no resource editor available which can create a help-ID file

The resourcefile has the help ID attached at the end of each control like:
C#
EDITTEXT        IDC_SIZE_VARIANTS_CATEGORY_NAME,57,9,130,14,ES_AUTOHSCROLL,0,HIDC_SIZE_VARIANTS_CATEGORY_NAME


and nameing is done by adding "HI" prefix - so no problemn to do this

But how does the numbering in the .hm file work?

we have 2-byte numbers like
#define HIDC_WINGFRAMETHICKNESS 0x3ebd // IDD_WINGPROPDLG

and 4 byte number like
#define HIDC_ROKAEX_PROFILE_TYPE 0xc0064007 // IDD_ROKAEX

also the numbers are not in order...

What is the best way to get correct numbers in the Help-ID file without using the resource editor?

many thanks in advance!

What I have tried:

serached the web and MFC MSDN (the answer there does not fit to my problem)
Posted
Comments
Sergey Alexandrovich Kryukov 19-May-16 9:23am    
Not clear. What is not in order? What order should be there and what you get?
—SA
Richard MacCutchan 19-May-16 12:50pm    
The numbers are generated by one of the wizards used by Visual Studio. If you change them then it is quite possible your code will break somewhere else. Only change them if you are going to recompile everything that is part of the project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900