9 Feb
2004
9 Feb
'04
9:33 p.m.
"iceryeah"
hello, problem 1: i can expose the function like void a( void ) def( "a", a );
but there is anthor function like this: void DebugMessage( char *msg,... );
i don't know how to expose this function.
problem 2: module test
int num = 0; void set( int a ) { num = a; }
then i expose set func , and do this in script: import test test.set( 10 )
and then in host app, i check the var num, it is not 10,why?
thanks very much.
If this is a Boost.Python question (I can't tell) I suggest you post it on the appropriate list: http://www.boost.org/more/mailing_lists.htm#cplussig -- Dave Abrahams Boost Consulting www.boost-consulting.com