Win32 Dll Extention Module Problem

Jeffrey Drake jpt.d at home.com
Sun Oct 28 17:34:51 CET 2001


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