Page 1 of 1

Posted: Thu Mar 28, 2002 5:24 pm
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

Posted: Thu Mar 28, 2002 6:14 pm
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

Posted: Fri Mar 29, 2002 3:27 am
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