By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

callback for ctypes

P: n/a
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
Nov 1 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
James Hu wrote:
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
Nov 1 '05 #2

P: n/a

James Hu wrote:
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

Nov 1 '05 #3

P: n/a
David Wahler wrote:
Also, I can't find any references for this "QImage Camera". Could you
post some additional information?


Trying "Qimaging" instead.
Nov 2 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.