python API wrapper for C++ API
Philippe C. Martin
philippecmartin at sbcglobal.net
Tue Nov 30 08:08:39 EST 2004
Hi,
How about first using a C to C++ wrapper:
*******************************************************
#ifdef __cplusplus
extern "C" { /* I really dislike this - iwj. */
#endif
void * init (void)
{
return new myobj()
}
xxxx 3D_fun1 (void * p_obj)
{
My_OBJ * l_obj = (My_OBJ *) p_obj;
l_obj-> 3D_Meth1(....)
}
#ifdef __cplusplus
}
#endif /* __cplusplus */
*******************************************************
Then wrap this with the standard python extension stuff
??
--
*********************
SnakeCard LLC
www.snakecard.com
*********************
More information about the Python-list
mailing list