[C++-sig] importing embedded dynamic lib
Vio
vmilitaru at sympatico.ca
Thu Jun 10 02:53:32 CEST 2004
followup...
I think what I'm looking for is "PyCObject_Import()",
which I found in wxPython.h
------------------------
// This needs to be called in modules that make calls to any of the
functions
// exported by the wxPython API. It sets a static pointer to a structure of
// function pointers located in the wx._core extension module.
static void wxPyCoreAPI_IMPORT() {
wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("wx._core", "_wxPyCoreAPI");
if (! wxPyCoreAPIPtr)
wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("_core", "_wxPyCoreAPI");
}
------------------------
wx._core referred here is file "_core.so". Unfortunately, PyCObject_Import()
does not seem to be documented in the Python API docs.
More digging required...
Vio
More information about the Cplusplus-sig
mailing list