Hello, I keep getting this error, and I cannot figure out why. I have code that registers a window class that works, and code that does not. Both bits of code create a WNDCLASS, both use byref(thewndclassinstance), both make sure there is always a reference to the window class structure instance to ensure it is not destroyed. Here is the error.
ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_WND CLASS instance instead of pointer to WNDCLASS Why would byref sometimes create an LP_WNDCLASS, and sometimes a 'pointer to WNDCLASS'? -- Henry
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32