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 *IR

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 wrapper

Please help me to resolve this issue

2006-03-24 Thread Yanping Zhang
Hello everyone, I am pretty new in python. Please give me any idea about this issue: There is a function like this in my c dll: typedef void (WINAPI *myCallBack) (unsigned int myarg1, unsigned int myarg2) bool myfunc(myCallBack mycall) In my python code, I was able to access other functions