Mail Archives: djgpp/1997/09/28/19:18:14
"Hargreaves, Shawn" (shawnh AT probe DOT co DOT uk) writes:
> A simple question for anyone who knows about this: are there any gotchas
> that I should be aware of when appending binary data onto the end of a
> djgpp executable? It seems to work quite happily, but is there any danger
> of this upsetting the stub in some way? What about if the file is
> compressed with DJP? (as long the data is appended after the compression
> is done, it seems to work ok, but I'm very suspicious of this :-)
Just how do you do such appending? Make a C program for editing the data
that somehow knows where the exe ends and the data begins, to fseek to
there and read/write? How about when the exe needs to read its own
attached stuff back, or modify it? Same thing? Won't this cause errors in
windows and other file sharing environments when the exe will be "in use"?
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -