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 


Coding a dll for injection help (Delphi)

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

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Sat Feb 28, 2009 4:54 am    Post subject: Coding a dll for injection help (Delphi) Reply with quote

How do we make a gui in a dll?
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sat Feb 28, 2009 5:30 am    Post subject: Reply with quote

you use createThread to call a function that will show the window
when DLL_PROCESS_ATTACH is called you use createthread to call your function (void Window() for example)
and you write the same code as in win app
there were quite few samples in the forum
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25790
Location: The netherlands

PostPosted: Sat Feb 28, 2009 11:32 am    Post subject: Reply with quote

In the initialization part of a unit, or between the begin and end of the main project place code to create a thread (e.g tthread.create(false) )

In the thread's code then place the code to create a form and do a form.showmodal;

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Mon Mar 02, 2009 3:15 am    Post subject: Reply with quote

Db can you type a short example for me?
Thank you.
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Mar 02, 2009 5:28 am    Post subject: Reply with quote

Dark Byte wrote:
In the initialization part of a unit, or between the begin and end of the main project place code to create a thread (e.g tthread.create(false) )

In the thread's code then place the code to create a form and do a form.showmodal;


Isn't it polite to use DllMain?

and in the block between being and end place DllProc := @DllMain (Pointer To The Object @ Memory Location) and set DllProc to DLL_PROCESS_ATTACH ?
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