without testing Deux example, wnd.lpfnWndProc needs to be an address of a function.
some thing like this, we need the address of the winproc.
kev
some thing like this, we need the address of the winproc.
Local WinProcADDR:Byte Ptr = WinProc If WinProcADDR > Null Then Print "winproc addr obtained " EndIf Function WinProc(hWnd:Int,Msg:Int,wParam:Int,lParam:Int) End Function
kev