Re: ctype question

2009-06-05 Thread Thomas Heller
Amit Gupta schrieb: Hi, I have been using ctype.cdll to load a library, but I am unable to figure out how to load multiple libraries that depends on each other. E.g. I have two libraries A.so and B.so. A.so has some undefined references, and those symbols are defined in B.so. When I try

ctype question

2009-06-04 Thread Amit Gupta
Hi, I have been using ctype.cdll to load a library, but I am unable to figure out how to load multiple libraries that depends on each other. E.g. I have two libraries A.so and B.so. A.so has some undefined references, and those symbols are defined in B.so. When I try to load

Re: Updated: python ctype question about access violation reading location 0x5a5a5a5a

2006-03-30 Thread Dave Mandelin
First guess is that you are passing a Python function to something that expects a C function. Try looking at gencb.py in DynWin. -- Want to play tabletop RPGs over the internet? Check out Koboldsoft RPZen:http://www.koboldsoft.com -- http://mail.python.org/mailman/listinfo/python-list

Updated: python ctype question about access violation reading location 0x5a5a5a5a

2006-03-29 Thread Yanping Zhang
Here are more details about my codes, please help! The function declared in C: typedef void (WINAPI *PLEARNCALLBACKPROC) (unsigned int progress, unsigned int sigQuality, unsigned long carrierFreq, void *userData); UUIRTDRV_API BOOL PASCAL UUIRTLearnIR(HUUHANDLE hHandle, int codeFormat, char

python ctype question about access violation reading location 0x5a5a5a5a

2006-03-28 Thread Yanping Zhang
Hi All, I need to use this C routine in python and there is a void pointer parameter in it: (this routine was written by someone else): myfunc(int a, (void *)userdata, bool b) I saw someone in his C++ wrapper used this routine in this way: myfunc(a, (void *)0x5a5a5a5a, b) In my python

Re: python ctype question about access violation reading location 0x5a5a5a5a

2006-03-28 Thread Chris Mellon
On 3/28/06, Yanping Zhang [EMAIL PROTECTED] wrote: Hi All, I need to use this C routine in python and there is a void pointer parameter in it: (this routine was written by someone else): myfunc(int a, (void *)userdata, bool b) I saw someone in his C++ wrapper used this routine in this