Hi, I have created a simple C++ class, and can successfully use in my python scripts. But my aim is to create a C++ instance, and pass it to my python script. The script will modify the instance and return it to the C++ application example : //---------------- example.h ---------------- #include <iostream> #include <string> class Personage { private: std::string m_name; int m_power; public: Personage(std::string name, int power); void setPower(); }; //---------------- example.cpp ---------------- #include "example.h" #include <Python.h> using namespace std;Personage::Personage(string name, int power) { m_name = name; m_power = power; } void Personage::setPower(int power) { m_power = power; } so, what should I do in the main to send an instance Personage to the script Python ? Any help would be appreciated
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig