Masm32 SDK description, downloads and other helpful links
Started by satpro, January 22, 2014, 09:35:31 PM
Quote from: rsala on January 27, 2014, 06:50:27 AMHi,I'm getting crazy with this. I'm terribly sorry but I can't see where the problem is so I can't fix it. Everything works fine in all computers and Windows platforms where I have tested Easy Code GoAsm.I will keep on trying.Ramon
Quote from: rsala on January 28, 2014, 06:41:21 AMNo, unfortunately Easy Code does not have any mechanism to generate error dump.
include \masm32\include\masm32rt.incusedeb=1 ; 0=no checks, 1=checkvoidNonZero MACRO argsLOCAL tmp$ @CatStr(<;>, <args>) if usedeb .if !eax pushad invoke GetConsoleWindow .if !eax ; must be SUBSYSTEM:WINDOWS... invoke AllocConsole .endif tmp$ CATSTR <chr$("## eax is zero in line >, %@Line, < ##")> print tmp$, 13, 10 popad .endif endifENDM.datarc RECT <>hWin dd ?.codestart: voidNonZero rv(GetConsoleWindow) ; uses Masm32 rv macro invoke GetClientRect, edx, addr rc voidNonZero eax ; more traditional voidNonZero rv(GetClientRect, eax, addr rc) MsgBox 0, str$(rc.right), "Pixels wide:", MB_OK exitend start