[C++-sig] Accessing Class Member Function from Python

Nagaraju srirangamnagaraju at gmail.com
Wed Jun 6 11:09:00 CEST 2012


Hi,

I have written a sample DLL in C++. It has a class and functions for add,
sub, mul and div.

I wrote a wrapper class in the same file as BOOST_PYTHON_MODULE(hello).

Now when I compiled this DLL, I get Test.DLL.

Now from Python, I wrote a script to load this Test.DLL.

How can I access add, sub and other functions in my Python script?

Request anybody to help me on this.

Regards,
Raju.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20120606/a8c8ab6d/attachment.html>


More information about the Cplusplus-sig mailing list