2015-11-19 33 views
0

我正在編譯和構建我的測試程序。但是,我收到以下錯誤。在Visual C++ 6.0標準版中製作幫助文件錯誤

Making help file... 
'".\makehelp.bat"' is not recognized as an internal or external command, 
operable program or batch file. 
Error executing c:\windows\system32\cmd.exe. 

hpled6_2565.exe - 1 error(s), 0 warning(s) 

你知道我該如何解決嗎?我正在使用Visual C++ 6.0標準版。

+0

我必須問...是否有一個原因,你正在使用一個17歲的編譯器版本,當現代和最新版本免費存在? – Casey

+0

以及我們公司的測試程序是使用這個版本構建的,他們還沒有升級它。其他測試程序在此版本中運行良好。 – Adhil

+1

我首先看一下makehelp.bat並確保A)存在,B)仍然正常運行。 – user4581301

回答

0
'".\makehelp.bat"' is not recognized as an internal or external command, 
operable program or batch file. 
Error executing c:\windows\system32\cmd.exe. 

上述內容似乎表明您的測試程序缺少makehelp.bat文件。

這本身就很容易修復,只需用VC6自動生成的模板(複製如下)替換XYZ並將其保存爲項目目錄中的makehelp.bat即可。

@echo off 
REM -- First make map file from Microsoft Visual C++ generated resource.h 
echo // MAKEHELP.BAT generated Help Map file. Used by XYZ.HPJ. >"hlp\XYZ.hm" 
echo. >>"hlp\XYZ.hm" 
echo // Commands (ID_* and IDM_*) >>"hlp\XYZ.hm" 
makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\XYZ.hm" 
echo. >>"hlp\XYZ.hm" 
echo // Prompts (IDP_*) >>"hlp\XYZ.hm" 
makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\XYZ.hm" 
echo. >>"hlp\XYZ.hm" 
echo // Resources (IDR_*) >>"hlp\XYZ.hm" 
makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\XYZ.hm" 
echo. >>"hlp\XYZ.hm" 
echo // Dialogs (IDD_*) >>"hlp\XYZ.hm" 
makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\XYZ.hm" 
echo. >>"hlp\XYZ.hm" 
echo // Frame Controls (IDW_*) >>"hlp\XYZ.hm" 
makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\XYZ.hm" 
REM -- Make help for Project XYZ 

echo Building Win32 Help files 
start /wait hcw /C /E /M "hlp\XYZ.hpj" 
if errorlevel 1 goto :Error 
if not exist "hlp\XYZ.hlp" goto :Error 
if not exist "hlp\XYZ.cnt" goto :Error 
echo. 
if exist Debug\nul copy "hlp\XYZ.hlp" Debug 
if exist Debug\nul copy "hlp\XYZ.cnt" Debug 
if exist Release\nul copy "hlp\XYZ.hlp" Release 
if exist Release\nul copy "hlp\XYZ.cnt" Release 
echo. 
goto :done 

:Error 
echo hlp\XYZ.hpj(1) : error: Problem encountered creating help file 

:done 
echo. 

然而,對於這個工作,你還需要一個resource.h繼VC6資源ID慣例,再加上各自.hpj.cnt文件。另外,你應該知道,即使你得到它的工作,最終的結果將是自Vista以來已棄用的HLP文件,並且根本不需要單獨的WinHlp32安裝(https://support.microsoft.com/en-us/kb/917607)。