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 


[Delphi] Creating a Window From DLL

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

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Sun Feb 10, 2008 7:32 pm    Post subject: [Delphi] Creating a Window From DLL Reply with quote

How do I create a window in a DLL? I'm trying to have the DLL be injected into another process and it will create a window. I tried CreateWindow but the window closes instantly.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Feb 10, 2008 7:56 pm    Post subject: Reply with quote

create another thread (tthread class or createthread) and in there create a form you do a .showmodal for
that window will stay up till you close it

forms are also a lot easier to manage than a window made with createwindow

_________________
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
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Sun Feb 10, 2008 8:09 pm    Post subject: Reply with quote

Are you talking about a fully embedded GUI? Or just showing a basic window/form?
Back to top
View user's profile Send private message MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Feb 14, 2008 6:17 pm    Post subject: Reply with quote

create a window project. The look at the initialization code. Now Do the following:

Open a new dll project.
Add the .pas the window is coded in.
Now use the initializator handle that the normal window used. Tada.
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