Please help me to resolve this issue

Y

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 in the dll, but I
have no idea how to call myfunc() because of WINAPI argument.

Thanks in advance.





__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 
D

Dave Mandelin

Yanping said:
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 in the dll, but I
have no idea how to call myfunc() because of WINAPI argument.

Are you using calldll/DynWin? gencb.py in DynWin generates C callback
functions from Python functions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top