View Single Post
Old 05-26-2004, 03:33 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
the original type is DWORD.

when i do this, i have problems casting DWORD to unsigned char:
Code:
v = (dwParam1>>0);
after a little bit of fussing around with it, this works out good.
Code:
unsigned char cc,channel,value;
cc = (dwParam1>>8);
channel = (dwParam1>>0)%16;
value = (dwParam1>>16);
i am suprised that i'm not getting some sort of type casting errors that second way.

thanks again!
__________________
Mike
sde is offline   Reply With Quote