Article ID: 235055 - Last Review: October 16, 2002 - Revision: 1.0

BUG: Tabs in .H File Cause Compiler Error HHC4014 in HTML Help

This article was previously published under Q235055
Expand all | Collapse all

SYMPTOMS

When you compile an HTML Help project, you may receive the following HTML Help compiler warning:
HHC4014: Warning: The following map definition has an invalid context id:

CAUSE

This is caused by characters in the include (.h) file that are not recognized by the compiler, such as tab characters.

RESOLUTION

Edit the include file so that there is exactly one space between each #define statement and what it is defining. Do not use tab characters.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

When you create an HTML Help project with context IDs, it is possible to put the context ID's in a separate include (.h) file and include the file by specifying it in the [MAP] section of the project. In this file, there must be exactly one space between the #define statement and the defined constant, and you cannot use tabs.
#define ID_HELP_ID 100 // Main Help ID
You can use tabs elsewhere in the file.

APPLIES TO
  • Microsoft HTML Help 1.1
  • Microsoft HTML Help 1.2
  • Microsoft HTML Help 1.21
  • Microsoft HTML Help 1.3
Keywords: 
kbbug kbcompiler kbpending KB235055
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations