| View previous topic :: View next topic |
| Author |
Message |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Tue Feb 03, 2009 4:39 am Post subject: [C++ Help] Generate Exe File |
|
|
How do you create a program that generates a standalone exe file just like how CE generates a trainer? and how do i embed particular instructions on that generated exe file? A messagebox maybe is a good example. Say, a program that generates an exe file and when you run the generated exe file a messagebox will popup. _________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Tue Feb 03, 2009 8:53 am Post subject: |
|
|
You could have an empty exe file and include that as a resource in your application. Then the application can extract the resource file, and make changes to it's code where nessecary. I don't know how CE does it but you might use hardcoded offsets in the exe which you can change.
For example an exe with a messagebox, with a certain text. Then you can hardcode the offset of this text from the start of the exe and change it when the application is running. |
|
| Back to top |
|
 |
Zerith Master Cheater
Reputation: 1
Joined: 07 Oct 2007 Posts: 468
|
Posted: Tue Feb 03, 2009 9:33 am Post subject: |
|
|
| tombana wrote: | You could have an empty exe file and include that as a resource in your application. Then the application can extract the resource file, and make changes to it's code where nessecary. I don't know how CE does it but you might use hardcoded offsets in the exe which you can change.
For example an exe with a messagebox, with a certain text. Then you can hardcode the offset of this text from the start of the exe and change it when the application is running. |
This is the most stupid idea I've ever heard. |
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Tue Feb 03, 2009 10:45 am Post subject: |
|
|
| Zerith wrote: | | tombana wrote: | You could have an empty exe file and include that as a resource in your application. Then the application can extract the resource file, and make changes to it's code where nessecary. I don't know how CE does it but you might use hardcoded offsets in the exe which you can change.
For example an exe with a messagebox, with a certain text. Then you can hardcode the offset of this text from the start of the exe and change it when the application is running. |
This is the most stupid idea I've ever heard. |
Ok, so what would you suggest? Coding a complete compiler and linker? |
|
| Back to top |
|
 |
BanMe Master Cheater
Reputation: 0
Joined: 29 Nov 2005 Posts: 375 Location: Farmington NH, USA
|
Posted: Tue Feb 03, 2009 12:07 pm Post subject: |
|
|
hmm zerith learn to take ideas for what they are..ideas.. whether good or bad at least he tried.. though you on the other hand just bitched about him trying.. your lack of time on the net researching coding shows ...but bleh enough said about that..
Run Time Code Generation (there are various incarnations of RTCG) and some of which ill go over briefly..
RTCG can be done alot of variouse ways one is generating Code to by run dynamically (on the spot) and the other is actually generating source code (compatible to compiler in a templated way)
also there area few projects out there that do this really well and provide good example on both sides (with there own variations of course) one of these is a Proxy Dll Generator that should provide sweet understanding to those trying to comprehend this subject
regards BanMe |
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Tue Feb 03, 2009 1:30 pm Post subject: |
|
|
| Considering CE is open source I can only reccomend that you go look at how it makes the trainers. |
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Tue Feb 03, 2009 5:51 pm Post subject: |
|
|
| noz3001 wrote: | | Considering CE is open source I can only reccomend that you go look at how it makes the trainers. |
true dat nigga _________________
|
|
| Back to top |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Tue Feb 03, 2009 11:14 pm Post subject: |
|
|
this is kinda too advanced thing. i guess i'm gonna have to set this aside for now and move on to a simpler project. Thanks by the way. _________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
|
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Tue Feb 03, 2009 11:45 pm Post subject: |
|
|
| ShurikeN wrote: | | this is kinda too advanced thing. i guess i'm gonna have to set this aside for now and move on to a simpler project. Thanks by the way. |
climb the ladder slowly, don't skip steps, unless you're some crazy jakie chan or something. _________________
|
|
| Back to top |
|
 |
|