From: "Paul Derbyshire" Newsgroups: comp.os.msdos.djgpp Subject: Executables with added data. Lines: 21 Organization: The Chaos Zone MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: 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 Precedence: bulk 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|