I am sorry I posted this as anon in such a stupid hurried manner, but I've sent a registration to here and hope to post much more, now that I have found this. I am trying to assemble myself a win32 app at the moment. So I:
C:\>nasm -fwin32 hi.asm
C:\>alink -oPE C:\Development\ALINK\win32.lib -entry _WinMain@16
C:\>hi.exe
It does everything fine. And then crashes. In the debugger, I have found that it crashes INSIDE the CreateWindowExA call somewhere. It ends up looking like:
CALL
<== Crashes here, never returns
; Error: Don't know how to continue because
; memory at address 00000024 is not readable.
; Try to change EIP or pass exception to program.
TEST EAX,EAX ; Never gets here
JNZ SHORT hi.00401098 ; Never gets here
I have no idea what could have gone wrong. The code is copied from ftp://ftp.szif.hu/pub/demos/tool/gijnwt2.zip and the source to the one I did can be found here: http://zxcvbn.t35.com/win32app.txt of course, it crashes on the CreateWindowEx call again. Perhaps I imporperly linked the app? Or assembled it? I am all very confused as to what happened.