1. RE: Display .chm Help Files from Euphoria

> -----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

new topic     » topic index » view message » categorize

2. RE: Display .chm Help Files from Euphoria

I did actually end up figuring out which library to call
and how to call it, but I was still puzzling out bringing up individual
topics.

Thanks, Matt!

-Ron T.



Matthew Lewis wrote:
 
> 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
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu