Hi,
I don't know why I get "error A2081: missing operand after unary operator"
in:
(it's not a entire proc)

; -------------------------------------------------------------

ButtonControlProc proc hWin :DWORD,
uMsg :DWORD,
wParam :DWORD,
lParam :DWORD

LOCAL wndplcm : WINDOWPLACEMENT

mov wndplcm.length, sizeof WINDOWPLACEMENT
invoke GetWindowPlacement, hSelectWnd, addr wndplcm ; <<<!!! in this line

ButtonControlProc endp
; -------------------------------------------------------------

hSelectWnd is a global variable.

Thanks for any help.
Posted on 2004-09-05 08:09:06 by Deli
The error is actually in the line before where you get the error mesage.
This is how the WINDOWPLACEMENT struct is defined in Windows.inc


WINDOWPLACEMENT STRUCT
iLength DWORD ?
flags DWORD ?
showCmd DWORD ?
ptMinPosition POINT <>
ptMaxPosition POINT <>
rcNormalPosition RECT <>
WINDOWPLACEMENT ENDS

Try
mov wndplcm.iLength, sizeof WINDOWPLACEMENT
Posted on 2004-09-05 08:31:45 by anon
Just keep an eye out for those structs, not all of them have fields named exactly the same as in the MSDN. Get an IDE that will tell you of such like WinASM Studio

link:
http://www.code4u.net/winasm/downloads.htm

Black iCE
Posted on 2004-09-05 10:02:25 by Black iCE