PDA

Click to See Complete Forum and Search --> : Dunno...


Zaei
Aug 4th, 2001, 07:28 AM
Dunno what exactly to call this thread (I just woke up...).

Anyway, i dont have access to any reference materials, or anything else, but I wanted to ask... I know there are HIWORD() and LOWORD() macros, but is there something like "MAKEDWORD(x, y)" where x and y are each 2 bytes, and it sticks them together to make a 4 byte DWORD?

Z.

abdul
Aug 4th, 2001, 09:15 AM
I have seen MAKEWORD but not MAKEDWORD.

You can try using that. I hope that would work

kedaman
Aug 4th, 2001, 09:42 AM
shouldn't be hard to implement such a macro

#define MAKEDWORD(x, y) ((DWORD)(((WORD)x) | ((DWORD)((WORD)y)) << 16))

Megatron
Aug 4th, 2001, 10:23 AM
It's the MAKELONG macro.

kedaman
Aug 4th, 2001, 10:36 AM
wasted efforts :p

Zaei
Aug 4th, 2001, 05:33 PM
Thanks Megatron. Like I said, I have no access to reference material, or anything, but I realized that im going to need it soon.

Z.