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 


C++ Findwindow

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

Joined: 22 May 2011
Posts: 37

PostPosted: Thu Jun 02, 2011 5:50 am    Post subject: C++ Findwindow Reply with quote

How do I use dllimport for findwindow in C++ (compiled with mingw32, in a console)
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jun 02, 2011 5:58 am    Post subject: Reply with quote

what are you trying to do?
Back to top
View user's profile Send private message
Ax3l
Cheater
Reputation: 1

Joined: 22 May 2011
Posts: 37

PostPosted: Thu Jun 02, 2011 9:30 am    Post subject: Reply with quote

slovach wrote:
what are you trying to do?


I want to get the handle of a window( By using findwindow) but I'm new to Dllimport in c++
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Jun 02, 2011 11:03 am    Post subject: Reply with quote

Why do you need to use dllimport ? You can just #include <windows.h> ?
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: Thu Jun 02, 2011 1:44 pm    Post subject: Reply with quote

DllImport is for .NET (managed) applications, not for native ones.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jun 02, 2011 4:42 pm    Post subject: Reply with quote

Ax3l wrote:
slovach wrote:
what are you trying to do?


I want to get the handle of a window( By using findwindow) but I'm new to Dllimport in c++


Just include the header and call it, nothing special to do.
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