Making Windows HtmlHelp API call

Trevor DeVore lists at mangomultimedia.com
Tue Oct 7 20:22:23 EDT 2003


On Tuesday, October 7, 2003, at 06:41  PM, Monte Goulding wrote:
>> I am finishing an app (Windows only) which will be integrated with 
>> some
>> other applications that are not made in Revolution.  The other
>> applications all share the same help file and ideally my Revolution 
>> app
>> will as well.  I was told that in order to do this I will need to make
>> an API call to HtmlHelp:
>>
>> HtmlHelp( hRevAppWindowHandle, "HelpFile.chm", HH_HELP_CONTEXT,
>> nJumpToTopic );
>>
>> hRevAppWindowHandle = handle to the main window in Rev app.
>> "HelpFile.chm" = path to the help file.
>> HH_HELP_CONTEXT = defined as 0x000F in the htmlhelp.h file from the
>> Microsoft Platform SDK.  The HtmlHelp function does different things
>> depending on this argument.  This argument tells it to launch to a
>> particular page specified by the last argument.
>> nJumpToTopic = This is the ID of the topic you want to jump to.
>>
>> Is this something I would have to have an external for if I wanted to
>> do it in my Revolution app?
>>
>
> Nah... just a two liner:
> set the hideConsoleWindows to true
> get shell("start "&quote&quote&&quote&Helpfile.chm&quote)

Monte,

I forgot to explain that the help file needs to be called this way in 
order for different executables to share the same help file.  That is 
why the HtmlHelp API must be used rather than just opening the help 
file using shell.

-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com




More information about the use-livecode mailing list