I am getting following error while compiling the project. Still programm is executing fine No problem.(Why) and how to remove this error
--------------------Configuration: Project - Win32 Debug---------------
Making help file...
hlp\Project.hpj(1) : error:
Microsoft (R) Help Compiler
HCRTF 4.03.0002
Copyright (c) Microsoft Corp 1990 - 1995. All rights reserved.
project.hpj
HC5011: Error: Project.hpj :
Cannot open the file "afxhelp.hm."
You are compiling project with context-sensitive help.
That requires afxhelp.hm file to be included. Generated by app wizard hpj (help project file) contains include statement that should be fully qualified path not just a filename.
If this is generated without full path you probably have a problem with registry entry.
You have two choices. One to correct problem manually by editing #include line.
Help Workshop does not use the INCLUDE environment variable to search for files. You have to specify full path.
It should look like this:
#include <C:\Microsoft Visual Studio\VC98\MFC\include\afxhelp.hm>
unless you have changed install defaults.
Second choice would be checking registry:
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\General
This contains a MFCPath32Bit key with value set to a MFC folder path, something like this:
C:\Program Files\Microsoft Visual Studio\VC98\MFC
Again if you have changed install defaults you would have to adjust path appropriately.
There are only 10 types of people in the world: Those who understand binary and those who do not.
OOPs you're right I misread it. He is having a problem with the standard MFC help IDs file, not the project generated help IDs file. The problem can be rectified by opening the Project.hpj file in hwc and then clicking on the "Map" button and then specifying the path to afxhelp.hm as John suggested.
Bookmarks