HIWORD, LOWORD question

Started by
0 comments, last by Promit 18 years, 4 months ago
Hello, I'm trying to use an if / else statement to complate the hi word and low word WPARAM. My code if ( HIWORD (my_value) < 0 ) { // do something } else { // do something else } However, statement always go to the else statement. It never go to the if statement side. Anyone has any idea?
Advertisement
HIWORD and LOWORD give you unsigned values. They can't really be less than 0 ever.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

This topic is closed to new replies.

Advertisement