|
-
Mar 1st, 2002, 02:01 PM
#1
Thread Starter
Frenzied Member
Help with error during compile..
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
-
Mar 2nd, 2002, 05:00 AM
#2
remove the (POINTS FAR*) cast.
MAKEPOINTS expects an LPARAM
btw, FAR is not necessary anymore. The 32-bit time is here!
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 2nd, 2002, 12:06 PM
#3
Thread Starter
Frenzied Member
Well why the heck would Microsoft still be showing that code then if it's obsolete? That is straight from their MSDN site...
-
Mar 2nd, 2002, 02:02 PM
#4
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
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|