Problem in Asm with nasm

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by VPureBasic.

Hi all

I would like to know why PureBasic returns me this message "Can't create the PureBasic.exe file( alredy running ) everytime I use a callback like wndproc.

WndProc:
%define hWnd ebp+8
%define uMsg ebp+12
%define wParam ebp+16
%define lParam ebp+20
enter 0,0

Mov eax,dword[ uMsg ]
... cmp etc

; default
Push dword[ lparam ]
Push dword[ wparam ]
Push dword[ uMsg ]
Push dword[ hWnd ]
Call _DefWindowProc@16
xor eax,eax
leave
ret 16


Thx to evryone who's gonna help
Roger
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

personally i get this message when i have click
the "make nt 4.0 compliant executable"
and i init anything from directx i.e sprites

Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by VPureBasic.

Hi all

I finaly find my mistake... I forget an 'A' at the end the API function... What a stupid error from me!


Call _DefWindowProc@16 <- Should be _DefWindowProcA@16


Thx to everyone who tried to find it!
Roger
Post Reply