makehelp.bat
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
- @echo off
- [!if HM_NOTE]
- REM -- PLEASE NOTE: OEM VS. ANSI CHARACTER SET DIFFERENCES
- REM -- Many of the file names below look weird in most editors because they need to be
- REM -- in the OEM character set, not the ANSI character set, in order to make batch
- REM -- files work right. The output and editor windows work with the ANSI character set.
- REM -- Where names are seen only in the output window, they have been left in the
- REM -- ANSI character set.
- [!endif]
- REM -- First make map file from Microsoft Visual C++ generated resource.h
- echo // MAKEHELP.BAT generated Help Map file. Used by [!output PROJECT_NAME].HPJ. >"hlp[!output HM_FILE_OEM].hm"
- echo. >>"hlp[!output HM_FILE_OEM].hm"
- echo // Commands (ID_* and IDM_*) >>"hlp[!output HM_FILE_OEM].hm"
- makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp[!output HM_FILE_OEM].hm"
- echo. >>"hlp[!output HM_FILE_OEM].hm"
- echo // Prompts (IDP_*) >>"hlp[!output HM_FILE_OEM].hm"
- makehm IDP_,HIDP_,0x30000 resource.h >>"hlp[!output HM_FILE_OEM].hm"
- echo. >>"hlp[!output HM_FILE_OEM].hm"
- echo // Resources (IDR_*) >>"hlp[!output HM_FILE_OEM].hm"
- makehm IDR_,HIDR_,0x20000 resource.h >>"hlp[!output HM_FILE_OEM].hm"
- echo. >>"hlp[!output HM_FILE_OEM].hm"
- echo // Dialogs (IDD_*) >>"hlp[!output HM_FILE_OEM].hm"
- makehm IDD_,HIDD_,0x20000 resource.h >>"hlp[!output HM_FILE_OEM].hm"
- echo. >>"hlp[!output HM_FILE_OEM].hm"
- echo // Frame Controls (IDW_*) >>"hlp[!output HM_FILE_OEM].hm"
- makehm IDW_,HIDW_,0x50000 resource.h >>"hlp[!output HM_FILE_OEM].hm"
- REM -- Make help for Project [!output PROJECT_NAME]
- echo Building Win32 Help files
- start /wait hcw /C /E /M "hlp[!output PROJECT_NAME_OEM].hpj"
- if errorlevel 1 goto :Error
- if not exist "hlp[!output PROJECT_NAME_OEM].hlp" goto :Error
- if not exist "hlp[!output PROJECT_NAME_OEM].cnt" goto :Error
- echo.
- if exist Debugnul copy "hlp[!output PROJECT_NAME_OEM].hlp" Debug
- if exist Debugnul copy "hlp[!output PROJECT_NAME_OEM].cnt" Debug
- if exist Releasenul copy "hlp[!output PROJECT_NAME_OEM].hlp" Release
- if exist Releasenul copy "hlp[!output PROJECT_NAME_OEM].cnt" Release
- echo.
- goto :done
- :Error
- echo hlp[!output PROJECT_NAME].hpj(1) : error: Problem encountered creating help file
- :done
- echo.