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
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
DWORD in that case is the same as :
Which means use DWORD alignment for the structure.
WNDCLASSEX STRUCT 4
cbSize DWORD ?
style DWORD ?
lpfnWndProc DWORD ?
.......
.......
WNDCLASSEX ENDS
Which means use DWORD alignment for the structure.
thank u.greg.