[fpc-pascal][OT] Changing Executables.

Johann Glaser Johann.Glaser at gmx.at
Fri Dec 22 12:49:04 CET 2000

Hi Guido!

> This is an oftopic question but this is the only group of people i know that
> could know this.
> I am trying to find a way to include my own code
> in an existing executable in a way that my code
> is executed first and after that, the original
> executable is executed. I have very little
> knowledge of assembler, but (I think) when I
> write a C(++) app and then compile it to
> assembler, and someone can tell me how I can
> modify existing executable in a way that my app
> is executed first, I don't need to have very much
> assembler knowledge.

Make a little program (C, Pascal, whatever) which first does the job you
want. After the job is done it executes (Exec) the original executable.

Rename the original executable to some different name, and name the new
self written executable as the original executabel was.


Johann Glaser           <Johann.Glaser at gmx.at>
       Vienna University of Technology
            Electrical Engineering 

More information about the fpc-pascal mailing list