Modifying EXEs 
Author Message
 Modifying EXEs

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.



Thu, 15 Nov 2001 03:00:00 GMT  
 Modifying EXEs
I feel that a better solution would be to use registry. The  first app reads
from registry and the second one writes the data to registry.

--
----------------------------------------
Rajesh Parikh

----------------------------------------


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.



Fri, 16 Nov 2001 03:00:00 GMT  
 Modifying EXEs
Is it possible to use a file?

Mike

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.



Sat, 17 Nov 2001 03:00:00 GMT  
 Modifying EXEs
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


Sat, 17 Nov 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Loading 48x48 and 64x64 icons from EXEs and DLLs

2. Does Visual C++ 5.0 Learning Edition generate .EXEs?

3. Exporting C++ function for C *AND* C++ exes ??

4. Finding CPU type and EXEs w/batches

5. Compressing multiple EXEs into 1 file

6. Class factories in EXEs

7. Firing events between two EXEs

8. two com exes running on two different machines

9. Can't anymore debug EXEs without symbols !!!

10. Empty EXEs which cause freeze

11. write .dlls and exes from res files to disk in app

12. Calling .exes from program

 

 
Powered by phpBB® Forum Software