Sounds more than a little strange to do to an executable. I've written
programs that patched the older Win16 format executables to get around
some rather serious bugs in a library, and it was no fun; for example,
you have to know where the various length counts are stored and how
checksums are computed. The 32-bit executable format is vastly more
complex, and I did this only out of complete desperation (the company
that created the library had gone out of business...)
However, there is a collection of calls that update resources, which
may be what you need. See UpdateResource and its related functions.
I've never used these. But changing captions and titles can be handled
by updating resources. If you need more detail after looking at these,
you can send me email, or check out our book Win32 Programming, which
talks about user-defined resources.
joe
On Sun, 30 May 1999 16:42:54 +0100, "Newforms"
Quote:
>I am trying to create a generic application. Inside of which there are a
>couple of structures that hold the data for the program. Including one for
>the title, and other bits and pieces.
>I then want to create another app that can write information into this
>executable. So, for example, the structure holding the title is changed to a
>different title by another app. The char array's can have data put into them
>etc. Anyone tried to do a similar thing?
>Thanks,
>Paul.
Joseph M. Newcomer
http://www3.pgh.net/~newcomer