View previous topic :: View next topic |
Author |
Message |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Thu Nov 19, 2009 7:14 pm Post subject: Forms In C++ Dlls? |
|
|
Is it possible to add a windows form to a C++ dll, last time I tried, I got a lot of errors (cosidering its managed code).
If there is, can you give a step by step tutorial?
- Thanks, iPromise
|
|
Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Fri Nov 20, 2009 9:05 am Post subject: |
|
|
Don't use managed C++, it is terrible.
If you want to create a DLL just use API such as CreateWindowEx, RegisterClassEx, etc. in a separate thread created at DllMain
_________________
|
|
Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Fri Nov 20, 2009 3:51 pm Post subject: |
|
|
See what i'm doing is creating a Memory Scanner, so I need a windows form to customize its GUI, however with CreateWindowEx from what I know, wont give me a GUI I want.
|
|
Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Sat Nov 21, 2009 12:18 am Post subject: |
|
|
createwindowex will give u any GUI you want and it's even better since the window is under your full control
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Sat Nov 21, 2009 1:36 pm Post subject: |
|
|
At entry create a new thread.
In that thread spawn the form and wait for it to close (Assuming you use a class library that doesn't mind creating forms in a thread that isn't the main thread)
_________________
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 |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Sat Nov 21, 2009 5:13 pm Post subject: |
|
|
Thanks for your help guys.
|
|
Back to top |
|
 |
|