More discovered

Jeffrey Drake jpt.d at home.com
Sun Oct 28 18:32:02 CET 2001


The 1 added on was my functions return. My goof. So I am using the proper
number.
"Jeffrey Drake" <jpt.d at home.com> wrote in message
news:EOWC7.369160$j65.95617496 at news4.rdc1.on.home.com...
>
> >>> import test
> >>> test.InitApplication()
> >>> test.InitInstance()
> >>> print test.hWnd
> 133138
> >>> import Win32X
> >>> Win32X.InitializeFlatSB(test.hWnd)
> 1331381
> >>>
>
> I have verified with spy++ that the first hWnd in python is correct.
>
> "Jeffrey Drake" <jpt.d at home.com> wrote in message
> news:LsWC7.368992$j65.95569889 at news4.rdc1.on.home.com...
> > Yes, InitializeFlatSB is the blocking call as it doesn't block when
> > commenting it out.
> >
> >
> > "Martin von Loewis" <loewis at informatik.hu-berlin.de> wrote in message
> > news:j4adycrscn.fsf at informatik.hu-berlin.de...
> > > "Jeffrey Drake" <jpt.d at home.com> writes:
> > >
> > > > The only problem I can think of is the data conversion.
> > >
> > > Using a debugger, can you determine how far it got? My guess would be
> > > that InitializeFlatSB does a blocking call, or that it was passed an
> > > invalid argument and did not correctly determine this problem.
> > >
> > > > "i" is the closest or "l" that is listed to be able to convert the
> HWND.
> > > > HWND natively is a void* i believe.
> > >
> > > You should only use the designated types for ParseTuple; in this case,
> > > it would be "int". Add another int variable;
> > >
> > >   int iwnd;
> > >   if(!PyArg_ParseTuple(args, "i", &iwnd))return NULL;
> > >   hwnd = iwnd;
> > >
> > > Regards,
> > > Martin
> >
> >
>
>





More information about the Python-list mailing list