Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-02-09 16:33:13


"iceryeah" <iceryeah2000_at_[hidden]> writes:

> 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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net