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 


Forms In C++ Dlls?

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

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Thu Nov 19, 2009 7:14 pm    Post subject: Forms In C++ Dlls? Reply with quote

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
View user's profile Send private message MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Fri Nov 20, 2009 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Nov 20, 2009 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sat Nov 21, 2009 12:18 am    Post subject: Reply with quote

createwindowex will give u any GUI you want and it's even better since the window is under your full control
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Nov 21, 2009 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Sat Nov 21, 2009 5:13 pm    Post subject: Reply with quote

Thanks for your help guys.
Back to top
View user's profile Send private message MSN Messenger
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