Sign in to follow this  
buggy123

error C3861: 'GetASyncKeyState': identifier not found

Recommended Posts

I was wondering...what causes this error? I defined the macros #define KEY_DOWN(vk_code)((GetASyncKeyState(vk_code) & 0x8000) ? 1 : 0) #define KEY_UP(vk_code)((GetASyncKeyState(vk_code) & 0x8000) ? 1 : 0) and used if(KEY_DOWN(VK_ESCAPE)) PostMessage(hWnd, WM_DESTROY, 0, 0); but it keeps giving this error: error C3861: 'GetASyncKeyState': identifier not found I included windows.h and even windowsx.h It's probably some stupid error that I overlooked but I couldn't find it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this