News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Assemble and link error

Started by UPucker, July 29, 2005, 07:01:05 AM

Previous topic - Next topic

UPucker

fatal error a1011: directive must be in the control block

the line it errors at is at the end:

.elseif uMsg==WM_PAINT
        mov eax, [hWin]
        mov ecx, OFFSET ps
        push   ecx
        push   eax
        invoke BeginPaint, eax, ecx
        invoke BitBlt, eax, 0, 0, ScreenWidth, ScreenHeight, [canvasDC],0, 0, SRCCOPY
        call EndPaint   

.endif

.elseif uMsg==WM_COMMAND   <-- The error points to this line, but wherever I relocate the entire WM_Paint
                                                  elseif, it errors at the newxt uMsg check.

Am I not closing something out properly?


hutch--

Zip your file and post it as there is not enough information to answer your question.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

farrier

You can only have one and only one .endif per .if "control block"

.if

.elseif

.elseif

.else

.endif


hth

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)