Sign in to follow this  


Recommended Posts

All I want to do is declare a TRACKMOUSEEVENT and use the BOOL _TrackMouseEvent function. When I try to declare the TRACKMOUSEEVENT like so TRACKMOUSEEVENT me; I'm slapped with this: C:\Projects\GM08\GMGUI.cpp(295) : error C2065: 'TRACKMOUSEEVENT' : undeclared identifier C:\Projects\GM08\GMGUI.cpp(295) : error C2146: syntax error : missing ';' before identifier 'me' C:\Projects\GM08\GMGUI.cpp(295) : error C2065: 'me' : undeclared identifier I've included windows.h, which includes winuser.h, which is where I can plainly see that TRACKMOUSEEVENT is declared like so #if(_WIN32_WINNT >= 0x0400) typedef struct tagTRACKMOUSEEVENT { DWORD cbSize; DWORD dwFlags; HWND hwndTrack; DWORD dwHoverTime; } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; WINUSERAPI BOOL WINAPI TrackMouseEvent( IN OUT LPTRACKMOUSEEVENT lpEventTrack); #endif /* _WIN32_WINNT >= 0x0400 */ It must be that the condition (_WIN32_WINNT >= 0x0400) is not met. I give up. What's going on here?

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