I keep getting the following error in VC++:
error C2102: '&' requires l-value
The line of code it's referring to is this:
ptTmp = MAKEPOINTS((POINTS FAR *) lParam);
Any help would be appreciated..
Dan
Printable View
I keep getting the following error in VC++:
error C2102: '&' requires l-value
The line of code it's referring to is this:
ptTmp = MAKEPOINTS((POINTS FAR *) lParam);
Any help would be appreciated..
Dan
remove the (POINTS FAR*) cast.
MAKEPOINTS expects an LPARAM
btw, FAR is not necessary anymore. The 32-bit time is here!
Well why the heck would Microsoft still be showing that code then if it's obsolete? That is straight from their MSDN site...
In the windows headers you'll find this line
#define FAR
which simply says: whenever you encounter FAR, remove it.
They left it for easier transition from Win3.x to 95/NT