We often need to make a CHM-formatted Help file for the application. It is usually done through the software provided by Microsoft HTML Help Workshop.
The download address for this tool is:
http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en
Let me briefly explain how to make a Help file
1. Prepare a website. Get all the pages ready.
Our example here is relatively simple, there are two pages: Default.htm and About.htm
2. Start HTML Help Workshop
3. Create a project
4. Create Help catalog (by clicking "Contents")
5. Create Help content entries
6. Compile (File==>complie ...)
7. View the CHM file
8. How to generate the CHM file programmatically.
Suppose I had all the files under it, what else could I do to compile them?
We can find the following directory, there is a hhc.exe, in fact, is the compiler
Then, execute the following command to complete the compilation
9. So if you want to generate dynamically, the mystery lies in hhp files, and HHC files, right.
Now you know how to dynamically generate CHM files.
From:http://www.cnblogs.com/chenxizhang/archive/2009/05/24/1488092.html