6-10-2018
The GetClientRect compiles with an error. WHY?
.const
RECT
rcClient STRUCT
left db 360
top db 160
right db 560
bottom db 200
rcClient ENDS
GetClientRect,[hWnd],addr rcClient
WndProc:
FRAME hWnd,iMsg,wParam,lParam,hPen,xx,yy,ww,hh
Error!
Line 226 of assembler source file (xxxxxx.asm):-
Unknown mnemonic, instruction, redefinition or directive:-
GetClientRect,[hWnd],addr rcClient
RECT has 4 dword members. It won't work with "db". Besides, GetClientRect writes to the rect: difficult to a constant.
That's true, but there should also be "invoke" before the function name.
Thanks fellows.
I have an extraordinary way of missing the obvious. :(