Wanna explain LOWORD, HIWORD, DWORD?

Started by
13 comments, last by Gollum 23 years, 10 months ago
Yeah, just wait til we all get to Win64 programming and then the newbies ask someone to explain what a QWORD (quadword) or an INT64 is

... or even a PARAGRAPH for you ASM junkies.

Edited by - Marsupial Rodentia on June 23, 2000 2:03:26 PM
Advertisement
Isn''t a PARAGRAPH 16byte alignment? Must take some more pills now...

When using 16bit environment:
int - 16bits
BYTE - unsigned char
WORD - unsigned (int)
DWORD - long (int)

When using 32bit environment:
int - 32bits
BYTE - unsigned char
WORD - unsigned short (int)
DWORD - unsigned (int)

Just one thing:
I think you said HIWORD and LOWORD were used to extract the lParam and wParam. Noooo. lParam and wParam are 2 different variables. You use LOWORD and HIWORD to extract 2 chunks of data from one of them. So lParam could store an x value in HIWORD and a y value in LOWORD. or something.
I''m guessing DWORD stands for double word, cos it''s 2 WORDs you see. WORD isn''t a microsoft term I don''t think.
Anyway, hope I havn''t shattered anyone''s new-found understanding with my mumblings.
Frank
A WORD is not Micro$ofts term, its just two bytes, and DWORD is a double WORD, as in 32bits(4 Bytes), as so many of you said
Yes, it does sound like rap...

Microsoft does have somewhat strange APIs anyway. Look at GDI!

- DarkMage139
"Real game developers don't change the rules. Real game developers don't break the rules. Real game developers make the rules!"
"Originality (in games) is the spice of life!"
- DarkMage139

This topic is closed to new replies.

Advertisement