Click to See Complete Forum and Search --> : writing in own .exe


Amit Aghi
April 28th, 1999, 06:37 AM
We want our application to write some data (a structure) in itself (.exe file). We have kept some static
char array in which we have to write. We are able to open and read our own .exe but not able to write in it. can any one suggest a way to do this. we are using VC++ 5.0 under win NT

thanxs in advance
Amit

William Walseth
April 28th, 1999, 11:50 AM
Try the /SWAPRUN linker option, which copies your program to a swap file, and then runs it. You may be able to write to your original disk file executable.

LOL.