[C++-sig] Passing pointer to c++ functions.

2009-02-02 Thread yamini sardana
Hi, How do we pass a pointer to a c++ function from python. I have to call the below mentioned function from python long afSigGenDll_Manual_LevelMax_Get(afSigGenInstance_t sigGenId, double* pLevelMax); When i am calling the function with the second argument as pLevelMax = pointer(c_double()) i

Re: [C++-sig] virtual functions and bind size reduction

2009-02-02 Thread Ralf W. Grosse-Kunstleve
> The second module is linked against the first one, so I think that the > linker should load all shared libraries before any python::boost code > get executed. Python needs to execute the init function in the first module. I.e. you have to have an import from Python. You could do the Python impo

Re: [C++-sig] virtual functions and bind size reduction

2009-02-02 Thread Hugo Lima
On Fri, Jan 30, 2009 at 11:13 PM, Ralf W. Grosse-Kunstleve wrote: >> This apparently works fine when running in same module but if I create a >> class > >> derived from Base in another module (another library), this stop >> working because the dynamic_cast fails. > > Simple idea: is the other mod