[C++-sig] call_method crash

2009-10-08 Thread Gustavo Adolfo Borges
Since Python Win32 lib does not implement DDE Advise Loop and i need it for a project, i guessed that Boost Python would be a way to integrate the ddeml lib with my python code. I guessed i could just call call_method inside the DDE Callback function, but when i do that python crashes. I can't(or c

[C++-sig] "pass all args in list" syntax

2009-10-08 Thread Gennadiy Rozental
Hi, In native Python I can do something like this: def goo(a,b,c): return a+b+c ll = [1,2,3] goo( *ll ) And it will pass all the arguments properly. I need similar functionality in C++: Given bp::object func; bp::list args; I'd like to invoke the function like this fun