Mail Archives: djgpp/1998/05/16/04:45:54
From: | "Paul Derbyshire" <pderbysh AT usa DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Executables with added data.
|
Lines: | 21
|
Organization: | The Chaos Zone
|
MIME-Version: | 1.0
|
Message-ID: | <en871.8012$z15.4555537@news21.bellglobal.com>
|
Date: | Sat, 16 May 1998 04:12:58 GMT
|
NNTP-Posting-Host: | 206.172.182.156
|
NNTP-Posting-Date: | Sat, 16 May 1998 00:12:58 EDT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Using DJGPP (but not Allegro) is there a simple way to add an arbitrary chunk
of binary data after the DJGPP exe, and have it available for read/write as if
it were a file? Is there some sort of pointer in the exe to the end to allow a
simple seek to the start of the added data (if any) and read/write data there?
I know the obvious way to put stuff there: open the exe for binary output, seek
to the end of file and append. How the devil is this stuff found later though
for reading/modifying? By terminating the addendum with an offset back?
or.....?
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://www3.sympatico.ca/bob.beland/indexn2f.html
_____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|
- Raw text -