Re: How do I launch a .hlp file from a Euphoria windows program?

new topic     » goto parent     » topic index » view thread      » older message » newer message

--simplest, gethelp.exw--
include dll.e
include machine.e

constant
 HELP_CONTENTS=3
,USER32=open_dll("user32")
,WinHelpA=define_c_func(USER32,"WinHelpA",
   {C_UINT,C_UINT,C_UINT,C_UINT},C_UINT)
 --handle,string-ptr,type,additional

atom helpfile, ret
helpfile=allocate_string("iexplore.hlp") --your filename
ret=c_func(WinHelpA,{0,helpfile,HELP_CONTENTS,0})
free(helpfile)
--end--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu