On Sun, Jun 24, 2012 at 5:46 AM, Ian <ian@ayresome.demon.co.uk> wrote:
On 23/06/2012 16:54, Xiang Wang wrote:

Is there any method that, define the implementation of a callback function in python , and call the function in c/c++ backend?

That blocks me for a long time.
Any of your support will be very appreciated.

Have you looked at director classes? This allows you to define an interface in C++ and inherit from it in Python. This effectively provides a mechanism for callbacks from C++ into Python.

Thanks for your reminding, but, I think you did not understand what i was asking.

I mean that ,  the function or class drived from c++ to python, and  the python instance was called by C++ backend.


Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Swig-user mailing list


Best Regards~

Xiang Wang

CDC, TrendMicro