7

I'm wondering if it is possible to display topics from a CHM help file in a form of my Delphi application? I know how to use the htmlhelp api but it launches the external help viewer. I would like to display the help topics within a form

Lars Truijens
  • 42,837
  • 6
  • 126
  • 143
Joe Meyer
  • 469
  • 1
  • 6
  • 14

2 Answers2

6

Not tested, but...
If you pass the help url (like ms-help://embarcadero.rs2009/delphivclwin32/System__TDateTime__-@TDateTime_@const.html) to an embedded WebBrowser, it should work.

Francesca
  • 21,452
  • 4
  • 49
  • 90
  • 2
    Thx, it works like a charm. BTW, to find out the URL inside the CHM file right-click on the topic text and select Properties. The file name can be copied from this dialog – Joe Meyer Jan 11 '10 at 20:05
0

Another solution in case you don't want to use MSIE, could be to port the chm reader library from Free Pascal. It is written in the Delphi dialect, and should be fairly easily, and allows you to extract HTMLs from the CHM (and compress back if necesary) without additional external dlls.

Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89