In my test the CreateWindowEX tests as BAD.
This is the same code I use in my MASM32 version.
Regardless of the test the CreateWindowEX does not work.
No error message from GoAsm but a Window message saying the program
has stopped working. cc:codecode is a struct I defined.
WinMain:
FRAME hInst,hPrevInst,CmdLine,CmdShow
LOCAL msg:MSG,rc:RECT,wc:WNDCLASSEXA,cc:codecode,hWnd
; more code which is already mentioned in a prior mesage
INVOKE CreateWindowEx, NULL,addr szDisplayName,addr AppName,\
WS_OVERLAPPEDWINDOW,[rc.left],[rc.top],[rc.right],\
[rc.bottom],NULL,NULL,[hInst],NULL
mov [hWnd],eax
;test code begin
;szText db ' executed correctly',0
;szText2 db ' is bad',0
;szCaption db 'TRUE',0
;szCaption2 db 'FALSE',0
pusha
cmp D[eax], 0 ; success
je >
invoke MessageBox, NULL, ADDR szText, ADDR szCaption, MB_OK
jmp >out1
:
invoke MessageBox, NULL, addr szText2, addr szCaption2, MB_OK
out1:
popa
;test code end
INVOKE ShowWindow, [hWnd], SW_SHOWNORMAL
INVOKE UpdateWindow, [hWnd]
; message loop here also mentioned in a prior message