Hey Tim, Both python files had code like this:
def register(self): self.wc = WNDCLASS() self.wc.style = win32con.CS_PARENTDC self.wc.lpfnWndProc = WNDPROC(WndProc) self.wc.cbClsExtra = self.wc.cbWndExtra = 0 self.wc.hInstance = GetModuleHandle(NULL) self.wc.hIcon = LoadIcon(NULL, win32con.IDI_APPLICATION) self.wc.hCursor = LoadCursor(NULL, win32con.IDC_ARROW) self.wc.hbrBackground = NULL self.wc.lpszMenuName = None self.wc.lpszClassName = self.classname RegisterClass(byref(self.wc)) Which was, and is, 100% correct, I think. The problem, which I just figured out, had to do with the modules they were both importing. One of them was importing a module that I had deleted, but the .pyc file still existed for it. I am not certain what was in that .pyc file, but it was causing the problem. As soon as I stopped importing that module, the problem went away. I am actually fairly annoyed that I could not easily determine what the precise problem was, but thankfully for me it has gone away. Henry On Jan 16, 2008 6:37 PM, Tim Roberts <[EMAIL PROTECTED]> wrote: > Henry Baxter wrote: > > I also tried using 'pointer' instead of byref, just to see if I could > > learn anything. The error is now: > > > > ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: > > expected LP_WND > > CLASS instance instead of LP_WNDCLASS > > > > Now I'm just more confused... > > Sample code? > > -- > Tim Roberts, [EMAIL PROTECTED] > Providenza & Boekelheide, Inc. > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32