in iczelion's tutorial 3,there is a struct like below:

WNDCLASSEX STRUCT DWORD
cbSize DWORD ?
style DWORD ?
lpfnWndProc DWORD ?
.......
.......
WNDCLASSEX ENDS

why there have a DWORD followed STRUCT.

why not below:

WNDCLASSEX STRUCT
cbSize DWORD ?
style DWORD ?
lpfnWndProc DWORD ?
.......
.......
WNDCLASSEX ENDS
Posted on 2004-10-21 19:38:21 by geegle
DWORD in that case is the same as :


WNDCLASSEX STRUCT 4
cbSize DWORD ?
style DWORD ?
lpfnWndProc DWORD ?
.......
.......
WNDCLASSEX ENDS

Which means use DWORD alignment for the structure.
Posted on 2004-10-21 20:15:54 by Greg
thank u.greg.
Posted on 2004-10-21 20:54:23 by geegle