News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

GetClientRect

Started by shankle, June 11, 2018, 02:10:50 AM

Previous topic - Next topic

shankle

              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



jj2007

RECT has 4 dword members. It won't work with "db". Besides, GetClientRect writes to the rect: difficult to a constant.

Yuri

That's true, but there should also be "invoke" before the function name.

shankle

Thanks fellows.
I have an extraordinary way of missing the obvious. :(