关于Html Help问题

panacea 2000-03-23 11:42:00
请问:如何可以把做好的Html Help文件(.chm)加入到我的Project里调用?
我用HtmlHelp函数一直编译不通过,哪位用过可否指教一二?
...全文
104 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Truman 2000-03-23
  • 打赏
  • 举报
回复
To add a custom build rule to build the latest version of the .chm

Add the HTML Help Project file (.hhp) to a Visual C++ project. From the Project menu, click Add To Project, then choose Files options to access the Insert Files into Project dialog box.


1.Select Settings… from the Project menu to access the Project Settings dialog box.

2.Select the .hhp file in the Settings For: list and click the Custom Build tab.


The Commands entry for the build rule should resemble:
hhc.exe $(InputName).hhp
@echo off

You may need to specify absolute or relative paths to the hhc.exe and .hhp file. You can put hhc.exe in your project's search path:

Select Options… from the Tools menu.


Click on the Directories tab and select Executable files from the Show directories for: list.


Specify the directory containing the hhc.exe file in the Directories list.
The Outputs entry should resemble:
$(InputName).chm

You may have to specify an absolute or relative path to ensure that the output file is written to the desired location.

If you want to rebuild the .chm file after a .htm file changes but where the .chm file wa not rebuilt, you should click the Dependencies... button in the Project Settings dialog box and specify each .htm file, including the path if necessary, to your HTML Help project.

3,055

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧