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 


[help]add a GUI in dll

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Tue Apr 01, 2008 7:41 pm    Post subject: [help]add a GUI in dll Reply with quote

hi everyone:

i recently started making my own dll trainer by learning c++. i made some progresses over the last few days with simple memory editing with hotkey enabled.

now im planning to add a simple GUI in my dll. so what i did is adding an extra UI in my project, named UI.h and designed a few checkboxes and pictures on it.

right now im having trouble about how to link the UI to my dllmain. i tried searching related topics in google, ie saw a few about createwindowex. but they made me more confused :S

so here is what i understand so far, this is what i need in maindll for a pure dll with no UI.
Code:

BOOL APIENTRY DllMain(HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
{
   if (ul_reason_for_call == DLL_PROCESS_ATTACH)
   {
      CreateThread(0, 0, (LPTHREAD_START_ROUTINE)newdll, 0, 0, 0); // Main thread
   }
   return true;
}

and from there,simply add my main code in bool newdll(void)


so if i designed a GUI in UI.h. how do i link it to the main code. and more specifically, how do i use checkbox status to enable memory change/other functions.

appreciated if any pro can point me to the right direction
and if its not too much troubles, it would be REALLY great to have your msn, so i can ask some stupid questions when you are free Embarassed

Thank you

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Apr 01, 2008 7:52 pm    Post subject: Reply with quote

CreateWindowEx

http://msdn2.microsoft.com/en-us/library/ms632680(VS.85).aspx
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Tue Apr 01, 2008 8:08 pm    Post subject: Reply with quote

slovach wrote:
CreateWindowEx

http://msdn2.microsoft.com/en-us/library/ms632680(VS.85).aspx


ty for replying, i already saw that a few times over the google :S
do u mind explain to me where i can implant createwindowex in my code(ie, maindll, newdll in the example i did above)

some examples would be really great.
________
Toyota Cressida specifications


Last edited by Bizarro on Tue Feb 01, 2011 11:58 am; edited 1 time in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Apr 02, 2008 12:27 am    Post subject: Reply with quote

Use dialogs, a bit easier to do over using CreateWindowEx. I made an example code of doing an injected DLL with a dialog here:

http://www.extalia.com/forums/viewtopic.php?f=21&t=2963

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Wed Apr 02, 2008 8:46 am    Post subject: Reply with quote

Wiccaan wrote:
Use dialogs, a bit easier to do over using CreateWindowEx. I made an example code of doing an injected DLL with a dialog here:

http://www.extalia.com/forums/viewtopic.php?f=21&t=2963


tx wiccan, i will add u on my msn if you don't mind. i also checked out extralia forum. its a pretty good site. and i found an example source of making GUI in c++. its a lot more complex than i thought. i guess i will focus on dialog or console instead.

tx again Razz
________
ecigarettes
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 Gamehacking 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