Results 1 to 6 of 6

Thread: Dunno...

  1. #1
    Zaei
    Guest

    Dunno...

    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.

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    I have seen MAKEWORD but not MAKEDWORD.

    You can try using that. I hope that would work
    Baaaaaaaaah

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    shouldn't be hard to implement such a macro

    #define MAKEDWORD(x, y) ((DWORD)(((WORD)x) | ((DWORD)((WORD)y)) << 16))
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Megatron
    Guest
    It's the MAKELONG macro.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    wasted efforts
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6
    Zaei
    Guest
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width