/// Foo.cpp
class CFoo
{

};


# Test.py
#i use foo.cpp build the 'foo' module
import foo

#param : CFoo
def bar(o):
     #call the object o's member functions


at last,i call the bar() function in my main.cpp.
///main.cpp
CFoo foo;
/// how to pass foo to the function 'bar'


now, i use the binder 'boost::python'.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to