error C2065: 'GET_X_LPARAM' : undeclared identifier
-
Arghhhhh! Shouldn't this work???? ------------------------------------ POINT pt; case WM_MOUSEMOVE: pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); ------------------------------------ I keep getting the error in the subject! I don't know what's wrong! -untwisted www.uber-ware.com brian@uber-ware.com
-
Arghhhhh! Shouldn't this work???? ------------------------------------ POINT pt; case WM_MOUSEMOVE: pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); ------------------------------------ I keep getting the error in the subject! I don't know what's wrong! -untwisted www.uber-ware.com brian@uber-ware.com
-
Did you remember to include: #define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) #define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) in your file?
Isn't that already defined for me though? Edit: I definded it, and now it's working! Thanks! -untwisted www.uber-ware.com brian@uber-ware.com
-
Arghhhhh! Shouldn't this work???? ------------------------------------ POINT pt; case WM_MOUSEMOVE: pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); ------------------------------------ I keep getting the error in the subject! I don't know what's wrong! -untwisted www.uber-ware.com brian@uber-ware.com
#include <windowsx.h> usually does the trick, but I got used to
#ifndef GET_X_LPARAM
#define GET_X_LPARAM(lParam) ((int)(short)LOWORD(lParam))
#endif
#ifndef GET_Y_LPARAM
#define GET_Y_LPARAM(lParam) ((int)(short)HIWORD(lParam))
#endif(WTL does the same, btw.)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen -
#include <windowsx.h> usually does the trick, but I got used to
#ifndef GET_X_LPARAM
#define GET_X_LPARAM(lParam) ((int)(short)LOWORD(lParam))
#endif
#ifndef GET_Y_LPARAM
#define GET_Y_LPARAM(lParam) ((int)(short)HIWORD(lParam))
#endif(WTL does the same, btw.)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen -
peterchen wrote: #include usually does the trick, but I got used to He meant #include <window.h>. Hey Peterchen, after all this time, I cannot believe you've fallen in the so-known < > trap ;P ~RaGE();