tags:

views:

64

answers:

1

Hi, I have an A.chm file for my windows application which runs as expected. When I decompile it using HTML workshop I get set of html files, .hhc file, .hhk file. When I compile another file B.chm from these extracted files without changing any of the files.((I want to add more html contents to this file but looks like I am losing some information after decompiling)) The output file I get is 72K where as the original file was 75K. B.chm's contents look all file when viewed in the chm viewer but the behavior is lost when when used with the application.

  1. After reading around I found that if .hhp can be extracted from a .chm file then it can be re-constructed as it is without losing any mapping or aliases. Is that true?

  2. How can I extract .hhp file from a .chm file?

Thanks, Sam

A: 

No, Yes , and no.

  1. The original hhp can't be guaranteed extracted

  2. however since chm is an archive type, the project could have added all project files to the archive. I assume you already found them if that were the case.

  3. If the decompile process does its administration, it can regenerate the .hhp to a certain degree.

    Comments and #define names will probably be lost though, maybe more, but that should not result in problems when recompiling.

But of course it could be that the decompiler is limited. You could try some other (search for something from "keytoolss").

If not, then take "chmlib" and start drilling down into the format.

Marco van de Voort
Thanks for you reply. I have come across chmDecompiler which claims that it can extract .hhp file. Though someone has to buy it to get this functionality.
Sam
I've whipped up a small util that extract alias data from CHMs btw.
Marco van de Voort