Until recently, when writing a Windows app I followed the practice of copying the complete STRUC and all its members into an .INC file and creating a local label for it :
appmsg:
istruc MSG
at MSG.hwnd, dd NULL
at MSG.message, dd NULL
at MSG.wParam, dd NULL
at MSG.lParam, dd NULL
at MSG.time, dd NULL
at MSG.pt, dd NULL
iend
But I've found that simply defining a variable postpended with _size works fine and the app appears to be stable (and a lot less cluttered) :
appmsg times MSG_size db 0
Is there anything wrong with this shortcut ?
Thanks in advance.
afk