I'll cut to the chase.
Essentially the idea of my C++ program is that it stores the binary data of a pre compiled EXE program in it's memory, and then dumps that EXE into the user's folder. The idea is that my program will create an executable file on disk.
I have written programs which copy EXEs, so I have two questions:
1. How would I store the data pure EXE file in my C++ program? I know if I have the memory I can just dump it into a new file.
2. I have a few string constants at the start of my EXE (#defines in the original c++ code). Can I edit these on the programs copy of the EXE file before writing the data to disk? I know I could make a seperate file containing the constants and have the generated EXE read these in, but I'd rather it was created with the data embedded.
I have tried my best to explain my predicament but if there is anything you think I should expand I would be happy to do so.
Thanks in advance,