About Help Context Map Files
Return to Introduction 
When you are not a programmer, you are probably not familiar with help context map files. So let's investigate this mysterious thing.

A help context map file is a plain text file, that contains pairs of topic IDs and help context numbers.

This map is used in compiled help files, to associate integer numbers (the so-called help context numbers) to alphanumeric topic IDs. It is a matter of application design whether you need them at all. Most Windows applications display context sensitive help through help context numbers. When you compile a help file, Help & Manual creates a couple of source files that are fed to the help compiler. Among the sources is a file with the extension ".hm" which contains the mapping for help context numbers. Since the temporary files are not longer needed after compilation, they get deleted and you probably never see them.


When a help context map file is needed...

Situation 1The programmer of the application that you are writing help for, gives you a help context map file and asks you to assign the numbers in this file to the appropriate topics in your help project. You can do this manually - go from topic to topic and copy and paste the help context numbers into the HelpContext field of each topic. The help context tool assists you by importing the map file and assigning the numbers in one step.  

Situation 2You have already assigned context numbers to your help topics and the programmers ask you for a list, so that they can prepare the application accordingly. The help context tool assists you by exporting a text file (a help context map file) with pairs of topic IDs and help context numbers.  


How does such a help context map file look like?

To give you an idea, below is an excerpt of the help context map of Help & Manuals help file. It's that simple.

#define introduction 10  
#define getfullversion 9900  
#define whatsnew 999  
#define howtoprintthishelpfile 208200  
#define convertversion2 208190  
#define jointhehelpcommunity 208440  
#define theuserinterface 207870  
#define treepanewindow 1  
#define hmitemoptions 3  
#define kbshortcutsgeneral 204220  
#define optionsprogram 2010  
#define workingwithhelpmanual_ 208030  
#define starthere 207880  
#define projectempty 2050  
#define projectimporthlp 205340  
#define projectimporthpj 2051  
#define projectimportchm 207910  
...