This is the mail archive of the
mailing list for the Cygwin project.
RE: Welcoming Brian Dessent as setup maintainer
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Cygwin Apps List'" <cygwin-apps at cygwin dot com>
- Date: Wed, 4 May 2005 00:52:46 +0100
- Subject: RE: Welcoming Brian Dessent as setup maintainer
>From: Warren Young
>Sent: 04 May 2005 00:42
> Brian Dessent wrote:
>> Another possibility might be to embed the .chm or .hlp file in the .exe
>> as a resource. I don't know if that's feasible or not.
> Tricky at best. Both WinHelp.exe and hh.exe are separate programs, and
> their APIs seem to have no way to tell them to look at a resource inside
> another EXE. I seem some mumblings in the HTMLHelp docs about using an
> ActiveX control with IE, so perhaps you could embed IE in order to
> display your HH file, but....ick.
The traditional hack for situations like this (it also crops up if you
want to bundle a .dll as a binary resource in your .exe and LoadLibrary it
at runtime, blech!) is to include the file as a binary resource, then at
runtime write the data of that resource to a temporary file and use that
file instead, deleting the file on exit!
Can't think of a witty .sigline today....