python and C++?

David Abrahams david.abrahams at rcn.com
Sun May 5 12:23:16 EDT 2002


"Totte Karlsson" <mtk at u.washington.edu> wrote in message
news:ab1r85$1u8s$1 at nntp6.u.washington.edu...
> Hi,
> Is there any good texts about how to interface to a windows dll with
python?
> I'm a total beginner of python.
> I'm a C++ programmer and what I want is to make a DLL and interface to
that
> one with python.
> Say for example, I have a C++ class, called mtkMatrix. Is it then possible
> to allocate a mtkMatrix in a python script and acess its class member
> functions?
> thanks
> /totte

Boost.Python was specifically designed to address your needs
(www.boost.org/libs/python/doc/). If you need help getting started, please
direct further questions to the C++-sig:
http://www.python.org/sigs/c++-sig/.

HTH,
Dave

P.S. I strongly recommend using the latest boost CVS state
(http://sourceforge.net/cvs/?group_id=7586) rather than the current release
version.





More information about the Python-list mailing list