RE: Display .chm Help Files from Euphoria
- Posted by Matthew Lewis <matthewwalkerlewis at YAHOO.COM> Oct 10, 2002
- 432 views
> -----Original Message----- > From: Ron Tarrant [mailto:rtarrant at sympatico.ca] > I've been hacking at trying to display a Windows .chm (compiled HTML > help) file from within a Euphoria program, but getting > nowhere. I found > an example for older RTF-based help files, but looks like things have > changed enough that this breaks. > > Does anyone have any ideas/suggestions? If you just want to open it (in a separate window), you can do the following: -- HtmlHelp function for opening context sensitive help constant hh = open_dll( "hhctrl.ocx" ), HtmlHelp = define_c_func( hh, "HtmlHelpA", {C_UINT, C_POINTER, C_UINT, C_LONG}, C_LONG), HH_DISPLAY_TOPIC = 0, HH_HELP_CONTEXT = #F Then use: void = c_func( HtmlHelp, {0, pszFile, HH_HELP_CONTEXT, helpcontext} ) Where pszFile is a pointer to the filename, and helpcontext is the context id number for the specific help item. Matt Lewis