Click to See Complete Forum and Search --> : Makelparam/makewparam
Feoggou
August 15th, 2007, 06:55 AM
hello.
can anybody tell me what's the difference between MAKELPARAM and MAKEWPARAM (besides one converts to lParam and the other to wParam).
is there a difference of value returned?
and... can you tell me how lParam and wParam are declared? (DWORD?)
Mike Harnad
August 15th, 2007, 08:46 AM
LPARAM is actually a LONG_PTR, and, WPARAM is a UINT_PTR. For more info, take a look at Windows Data Types (http://msdn2.microsoft.com/en-us/library/aa383751.aspx) .
Feoggou
August 15th, 2007, 09:23 AM
So, they are integers, wParam unsigned and lParam signed, if I understood well. But if so, why are they called PTR (LONG_PTR, UINT_PTR)?
Why are they called pointers (PTR = pointer, isn't it?) if they are integers?
Oh... And about pointers, if you don't mind, can you please tell me what a long pointer means? I don't understand this either.
Mike Harnad
August 15th, 2007, 09:45 AM
You'll need to read through the link I provided. For example,
LONG_PTR - Signed long type for pointer precision. Use when casting a pointer to a long to perform pointer arithmetic.
But if so, why are they called PTR (LONG_PTR, UINT_PTR)?Don't know the answer to that. I'm sure Microsoft had a reason.
tell me what a long pointer meansa pointer to a long integer.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.