Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Question] Adding an EXE to resource and using it (Delphi)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sun Aug 26, 2007 2:05 pm    Post subject: [Question] Adding an EXE to resource and using it (Delphi) Reply with quote

Ok, I know how to add files to the resource, and I know how to read media files, and most of the things, but I would like to add an EXE to the resource, and use it with regular file functions (Such as Rename(), CopyFile(), etc...), anyone knows how?
_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Ksbunker
Advanced Cheater
Reputation: 0

Joined: 18 Oct 2006
Posts: 88

PostPosted: Sun Aug 26, 2007 2:45 pm    Post subject: re: Reply with quote

First code the program you want to add as a resource.

Secondly, include the raw data (as a regular text file in resource).

Thirdly, use WriteFile to write this data to disk with extension .exe.

You have just created a working executable.
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sun Aug 26, 2007 3:03 pm    Post subject: Re: re: Reply with quote

Ksbunker wrote:
First code the program you want to add as a resource.

Secondly, include the raw data (as a regular text file in resource).

Thirdly, use WriteFile to write this data to disk with extension .exe.

You have just created a working executable.


So what you are saying is, to include an exe and rename it to a .txt one, and then use the function to copy all of the strings inside him, and write them to an exe on the client's computer?

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Aug 26, 2007 3:28 pm    Post subject: Re: re: Reply with quote

Simsgy wrote:
Ksbunker wrote:
First code the program you want to add as a resource.

Secondly, include the raw data (as a regular text file in resource).

Thirdly, use WriteFile to write this data to disk with extension .exe.

You have just created a working executable.


So what you are saying is, to include an exe and rename it to a .txt one, and then use the function to copy all of the strings inside him, and write them to an exe on the client's computer?

yes.

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites