|
-
Aug 4th, 2001, 07:28 AM
#1
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.
-
Aug 4th, 2001, 09:15 AM
#2
PowerPoster
I have seen MAKEWORD but not MAKEDWORD.
You can try using that. I hope that would work
-
Aug 4th, 2001, 09:42 AM
#3
transcendental analytic
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.
-
Aug 4th, 2001, 10:23 AM
#4
-
Aug 4th, 2001, 10:36 AM
#5
transcendental analytic
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.
-
Aug 4th, 2001, 05:33 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|