callback for ctypes

J

James Hu

Hi, gurus,

I would like to use ctypes to implement callback function for QImage
Camera to capture image asynchronously, and I have the c++ code of
callback, but I am totally in the dark, the ctypes tutorial is not good
enough for me to do that, does someone know where to dig more info for
ctypes callback implementation?

Thanks,

James
 
S

Steve Horsley

James said:
Hi, gurus,

I would like to use ctypes to implement callback function for QImage
Camera to capture image asynchronously, and I have the c++ code of
callback, but I am totally in the dark, the ctypes tutorial is not good
enough for me to do that, does someone know where to dig more info for
ctypes callback implementation?

Thanks,

James
I've done one, but I can't get back to you with details until
this time tomorrow. If nobody else is helping by then, I'll try.

Steve
 
D

David Wahler

James said:
Hi, gurus,

I would like to use ctypes to implement callback function for QImage
Camera to capture image asynchronously, and I have the c++ code of
callback, but I am totally in the dark, the ctypes tutorial is not good
enough for me to do that, does someone know where to dig more info for
ctypes callback implementation?

Thanks,

James

Ctypes is designed to interface with C code, not C++. C++ compilers
perform name mangling to allow function overloading and virtual
functions. To use ctypes, you'll need to know the exact details of how
your compiler translates C++ code--which is certainly a non-trivial
task.

Also, I can't find any references for this "QImage Camera". Could you
post some additional information?

-- David
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top