PRB: VC++ Does Not Convert Help Project File Paths (190509)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q190509 SYMPTOMS
After loading and converting a project created in a previous version of
Visual C++, a build attempt fails while compiling a help project with this
message:
error: Problem encountered creating help file
On Windows NT and Windows 2000, the following error message will also appear :
Error executing c:\winnt\system32\cmd.exe.
The error line indicates the first line of the project's .hpj file.
This error may also occur after moving a project, while building it from a
different workstation, or after reinstalling Visual C++ to a different path.
CAUSE
The project contains a hard-coded path within the help project (.hpj) file
that is no longer valid in the current build environment.
RESOLUTION
You must modify the .hpj file to correct any file paths that are now
invalid. You may also modify the custom build step to provide more
informative error reporting.
To modify the .hpj file:
- Open the .hpj file in Visual C++.
- Examine its [FILES] and [MAP] sections for hard-coded paths. Modify them
as necessary.
Notice that the default installation path for Visual C++ 6.0 is as follows:
\Program Files\Microsoft Visual Studio\VC98
whereas the default path for Visual C++ 5.0 is as follows:
\Program Files\DevStudio\VC
To upgrade the custom build step rule:
- Right-click the .hpj file in FileView; then click Settings on the Context menu, and click the Custom Build tab in the Project Settings dialog box.
- Visual C++ 5.0 uses the following custom build step command to build help files:
call "$(ProjDir)\makehelp.bat"
Modify this text in the Commands list box to the following, assuming
Makehelp.bat has not been changed from its original form:
start /wait hcw /C /E /M "hlp\$(InputName).hpj"
if errorlevel 1 goto :Error
if not exist "hlp\$(InputName).hlp" goto :Error
copy "hlp\$(InputName).hlp" $(OutDir)
goto :Done
:Error
echo hlp\$(InputName).hpj(1) : error:
type "hlp\$(InputName).log"
:Done
NOTE: The above steps are the default for a new project in Visual C++ 6.0.
- Delete Makehelp.bat from the project; it is normally in the Help Files folder. If desired, you may also delete the Makehelp.bat file as well.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbFAQ kbide kbprb kbwizard KB190509 |
---|
|