I am using pywin32 214 on Windows XP 32 bit. I am calling SetWindowLong like so:

--
import win32api, win32con

def fun():
    print 'fun'

h = win32api.GetCurrentProcess()
win32api.SetWindowLong(h, win32con.GWL_WNDPROC, fun)
--

But receiving:

TypeError: Unable to convert function to pointer-sized value

My google-fu fails me. Any hints?
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to