1. RE: Using CHM Help Files from Euphoria
- Posted by Ron Tarrant <rtarrant at sympatico.ca> Oct 10, 2002
- 431 views
Ron Tarrant wrote: > I've been hacking away at trying to display a .chm (compiled HTML > Help) file from within a Euphoria program, but I'm getting nowhere. Never mind, I figured it out. For anyone else who's curious: -------- start snippet ------------------ global integer callWindowsHelp, libHtmlHelp -- register the HTML Help library libHtmlHelp = registerw32Library("hhctrl.ocx") -- get an id for the HtmlHelpA routine in hhctrl.ocx. callWindowsHelp = registerw32Function(libHtmlHelp, "HtmlHelpA", {C_INT, C_INT, C_INT, C_INT}, C_INT) -- a sample calling routine: procedure LetsCallWinHelp(sequence FileName, -- help file name atom command, -- type of help needed atom data) -- value related to type of command atom file_ptr, start -- how to pass messages to the help engine !! file_ptr = acquire_mem(0, FileName) start = w32Func(callWindowsHelp, {getHandle(myWindow), file_ptr, command, data}) release_mem(file_ptr) end procedure -- and it's called like this: LetsCallWinHelp("my_help_file.chm", #0002, 0) Note: When calling WinHelpA(), the command value for viewing the help TOC was #0003, but in HtmlHelpA() it's #0002. -Ron T.
2. RE: Using CHM Help Files from Euphoria
- Posted by Ron Tarrant <rtarrant at sympatico.ca> Oct 10, 2002
- 447 views
Hmmm, I had figured out a different way. I'll give this one a shot, too. Thanks, Ken! -Ron T. Ken Rhodes wrote: > Hi Ron, > will this work for you? > > system("start " & yourfile.chm, 0) > > Ken Rhodes > > --- Ron Tarrant <rtarrant at sympatico.ca> wrote: > > > > I've been hacking away at trying to display a .chm > > (compiled HTML > > Help) file from within a Euphoria program, but I'm > > getting nowhere. > > > > Anyone have any ideas or suggestions to pass along? > > > > -Ron T. > > > >
3. RE: Using CHM Help Files from Euphoria
- Posted by irv at take.maxleft.com Oct 10, 2002
- 410 views
jbrown105 at speedymail.org wrote: > On 0, Ron Tarrant <rtarrant at sympatico.ca> wrote: > > > > I've been hacking away at trying to display a .chm (compiled HTML > > Help) file from within a Euphoria program, but I'm getting nowhere. > > > > Anyone have any ideas or suggestions to pass along? > > > > -Ron T. > > > > I saw the replies for Windoze Euphoria, any hints for getting them to > show > for Linux Euphoria? > > Or plain old-style .hlp files for that matter? I suppose .chm and .hlp formats are proprietary, and the Unix man format is pretty obsolete. Why not just call system("konqueror file://index.html",0) to start the browser and use HTML docs? Regards, Irv
4. RE: Using CHM Help Files from Euphoria
- Posted by Ron Tarrant <rtarrant at sympatico.ca> Oct 10, 2002
- 422 views
jbrown105 at speedymail.org wrote: > > I saw the replies for Windoze Euphoria, any hints for getting them to > show > for Linux Euphoria? I don't think so, but it would depend on whether or not someone has reverse-engineered compiled HTML. I know there are de-compilers that work under windows, but whether or not you can get your hands on source is something I _don't_ know. > Or plain old-style .hlp files for that matter? This, I really doubt unless there's a utility I don't know about that reads winhelp format under UNIX. This is quite possible; there are lots of utilities for reading what I thought were Windows-only formats. The best I can do is wish you luck. -Ron T.
5. RE: Using CHM Help Files from Euphoria
- Posted by Ron Tarrant <rtarrant at sympatico.ca> Oct 11, 2002
- 412 views
David Cuny wrote: > jbrown wrote: > > > I saw the replies for Windoze Euphoria, any hints for getting them to > > show > > for Linux Euphoria? > > > > Or plain old-style .hlp files for that matter? > > Not exactly the same thing, but... > > If you have the source files to the Windows .chm, you can used the > wxWindows > HelpView program to display it. > > Basically, the wxWindows help format is exactly the same as the Windows > help > format, except instead of compiling the files into a .chm, they are > zipped > into a single file and renamed. > > Unfortunately, I don't know how of any program that will reverse > engineer a > .chm back into it's source files. But if you've got the source files, > it's > pretty cool. In HTML Workshop version 4.74.8702.0 (from Microsoft) use File/decompile. I just tried it on refman2.chm and it spit out 42 source files (.htm, .gif, as well as a .hhk and a .hhc). -Ron T.
6. RE: Using CHM Help Files from Euphoria
- Posted by irv at take.maxleft.com Oct 11, 2002
- 412 views
jbrown105 at speedymail.org wrote: > On 0, irv at take.maxleft.com wrote: ] > > I suppose .chm and .hlp formats are proprietary, > > If you're saying that there is no way to use them unless I backwards > engineer > the formats myself or use Wine to access the Windoze interface to these > files, > then its probably not worth the trouble. I don't know - look here, and decide for yourself: http://www.speakeasy.org/~russotto/chm/chmformat.html > > and the Unix man > > format is pretty obsolete. > > With that I disagree, as I use man pages all the time. :) > (Also use info pages too on occasion.) Well, I use them also, but many state that they are "no longer maintained". And you'll have to admit that man pages lack a lot when compared to html. > I was just wondering if there was a way to show those types of files > under Linux. You can convert chm to standard html format which does not require a proprietary viewer: http://chm2web.aklabs.com/ (free trial period) However, the most interesting use of .chm files is to distribute trojans. See: http://news.zdnet.co.uk/story/0,,t272-s2123332,00.html http://shop.osborne.com/osborne/virus_alert/britney_pic.shtml http://online.securityfocus.com/archive/1/255276 Regards, Irv