| View previous topic :: View next topic |
| Author |
Message |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Tue Apr 01, 2008 7:41 pm Post subject: [help]add a GUI in dll |
|
|
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
Thank you
_________________
w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Tue Apr 01, 2008 8:08 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Wed Apr 02, 2008 8:46 am Post subject: |
|
|
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
________
ecigarettes
|
|
| Back to top |
|
 |
|