Easiest way to open chm program files?

I have a 32-bit application written in Borland C ++ Builder. I need to programmatically display specific pages from an HtmlHelp file. So far, I have done this through HtmlHelp.ocx, but this does not work on 64-bit versions of Windows Vista / Windows7, as described in this thread .

I can not compile the application as a 64-bit executable. Therefore, the only workaround I have found so far is to create a 32-bit component that implements a COM object, which loads and calls into a 32-bit DLL, and provides a 32-bit DLL interface as a COM interface.

It sounds too complicated just to display a chml file with a specific theme. There must be something else. But what is it?

+3
source share
1 answer

Is this not possible with the htmlhelp api? (htmlhelp.h in MS sdk?)

In particular, the htmlhelpA function with HH_DISPLAY_TOPIC

Some people chose to go through .OCX in the past because it was more reliable on IIRC w9x, but I guess this is not a problem in a 64-bit application.

Perhaps these functions also list some ocx / dll that do not exist on 64-bit land, but worth a try. I cannot verify this easily.

+1
source

Source: https://habr.com/ru/post/1723106/


All Articles