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++]WM_DESTROY
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Thu Jun 26, 2008 1:07 am    Post subject: Reply with quote

Well I don't know, but my Visual Studio doesn't like me and doesn't include files from the directories I want. I hate having to keep on adding windows.h and other things to the header files.
Back to top
View user's profile Send private message
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Thu Jun 26, 2008 8:36 am    Post subject: Reply with quote

slovach wrote:
avril18 wrote:
if i put:
if ( GetAsyncKeyState ( VK_F12 ))
Windows::Forms::MessageBox::Show("hello;)","grats!!");
else
Windows::Forms::MessageBox::Show("Sad ","Error");

i get an error saying:

error C2065: 'VK_F12' : undeclare identifier
error C3861: 'GetAsyncKeyState': identifier not found


include windows.h



samuri25404 wrote:
avril18 wrote:
if i put:
if ( GetAsyncKeyState ( VK_F12 ))
Windows::Forms::MessageBox::Show("hello;)","grats!!");
else
Windows::Forms::MessageBox::Show("Sad ","Error");

i get an error saying:

error C2065: 'VK_F12' : undeclare identifier
error C3861: 'GetAsyncKeyState': identifier not found


Include the right header?

Though you're using managed C++, so you'll probably have to declare the imports. Look up "P/Invoke C++.NET on Google" or something of the likes.


You dont't need to Pinvoke under managed C++ if I remember right.


TY!!! man now work perfectly
oo and i was declaring the hotkeys in my header file
nor in my cpp file Rolling Eyes

_________________


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
Goto page Previous  1, 2
Page 2 of 2

 
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