In VentWN1.asm,
proc Entrada
...
....
invoke WinMain, dword wc + WNDCLASSEX.hInstance, dword NULL, dword CommandLine, dword SW_SHOWNORMAL
plz change it to..
invoke WinMain, dword [wc + WNDCLASSEX.hInstance], dword NULL, dword CommandLine, dword SW_SHOWNORMAL
so that the value of application instance is passed not the address location which holds the application Instance value.
It works fine after that change.
Regards,
Mathi.