Binary with appended zip-file

Jan Claeys usenet at janc.be
Sat May 26 08:22:23 PDT 2007


Op Sun, 20 May 2007 17:41:28 +0200
schreef Henning Hasemann <hhasemann at web.de>:

> I'm about to build a little SDL-application which should run
> completely from a single binary.
> So my idea was to simple append a .zip-file with all other needed
> files (images etc..) to it and extract it in RAM with std.zip.
> 
> The big problem is: How does the program know where in the binary the
> zip-file begins?

Check the size of the binary at runtime and subtract the size of
the .zip file from it?   :-)

(That's how many virusses did it, back in the days of DOS...)

-- 
Jan Claeys



More information about the Digitalmars-d mailing list