Displaying HTML help from an Activex Control
Moderators: Alexander Halser, Michael Schwarzl
Displaying HTML help from an Activex Control
I am using Delphi 2007 and I want to display HTML help from an Activex Control. I include HtmlHelpViewer in the uses list and everything goes just fine until the application terminates. It then hangs. The activex is hanging on a call to HtmlHelp(0, 0, HH_CLOSE_ALL, 0). I haven't been able to find an solutions to this using Google. I was wondering if anyone here had any ideas.
I found the problem. There is a bug in HtmlHelpViewer. If you don't display any help pages it never issues the HH_INITIALIZE command but it always issues the HH_CLOSE_ALL command when the application shuts down. This causes the hang. A workaround is to put HtmlHelp(0, nil, HH_INITIALIZE, &dummy) into the start up code of the ActiveX.