Where is the textmode IDE? Does it come with the Lazarus download?
"you load the CHM" -- load the CHM into the textmode IDE?
"build a helpviewer" -- I don't understand. I would expect to use Windows standard chm viewer.
If you don't want the result to be character based, and don't mind windows only, you can use the HTMLHELP api calls.
See the demoes in the packages\winunits-base\tests directory in the FPC sources. I assume they come with Lazarus
It looks like Lazarus\fpc\3.0.0\source\packages\winunits-base\tests\hhex.pp (attached) will work. However, when I compile I get a hint --
"Conversion between ordinals and pointers is not portable"
This occurs at ptruint(pchar(htmltopic)) of the following line --
Res:=HtmlHelpA(0,pchar(helpfilename) ,HH_DISPLAY_TOPIC,ptruint(pchar(htmltopic)));
The compiler gives the explanation --
"If you typecast a pointer to a longint (or vice-versa), the code will not compile on a machine using 64 bit addressing."
Otherwise, the code compiles OK under Win7 Professional. Since I don't plan to distribute the source code, is this a problem? In any case, however, can the code be rewritten to avoid this?