Prototypes tell you the expected types, but when you call a function you don't include the type -- the type is inherently part of the variable or literal being used in the call. That is,
if (GetKeyState(48)==1){
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
>How can I take only the high order bit from that command?
Here's a slight push in the direction of a solution:
#define bit(i) (1UL << (i))
You can use it to test a certain bit by ANDing the result of bit(n) with the value:
if ((GetKeyState(48) & bit(7)) != 0)
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401