Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-08-12 Thread Der Lockruf des Kaos
Before i posted to the List, i already managed too bind the Non-Member Functions to the Handler (e.g. ecore_event_handler_add) int Test( void *d, int t, void *e ) { return 0; } ecore_event_handler_add( ECORE_IPC_EVENT_SERVER_DEL, Test, NULL ); I think it's the same in Factory.*. My Problem is,

Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-08-11 Thread Vincent Torri
For an example of implementation of callbacks with boost: http://cvs.sourceforge.net/viewcvs.py/avisynth2/avisynth/src/filters/source/gstreamer/?only_with_tag=avisynth_3_0 look at factory.* Vincent On Mon, 1 Aug 2005, Carsten Haitzler wrote: On Sun, 31 Jul 2005 22:08:37 +0200 Der Lockruf

Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-08-11 Thread Vincent Torri
Can't you wrap ecore objects with a boost::smart_ptr ? I use the smart_ptr to wrap objects of the Gstreamer library without any problem. After that, I think it is not difficult to use the C++ stuff of boost. For examples, maybe you can have a look there:

[e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-07-31 Thread Der Lockruf des Kaos
Hi all, I have a Problem with C++ Member Functions and Pointers to this Member Functions so that they fit into a Function with take a normal Function. I guess i'm a Newbie, otherwise i should have already solved it, i think. ;) I want to use IPC Stuff from Ecore. But before you can make use of

Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-07-31 Thread xnowfall
ecore_* takes a pointer to a function whereas boost::bind returns an object (that can be used as a function by operator overloading). to use a member function you need both a pointer to an object instance and a pointer to the function, which boost::bind wraps up in an object, but which the efl

Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-07-31 Thread Der Lockruf des Kaos
ecore_* takes a pointer to a function whereas boost::bind returns an object (that can be used as a function by operator overloading). to use a member function you need both a pointer to an object instance and a pointer to the function, which boost::bind wraps up in an object, but which

Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-07-31 Thread The Rasterman
On Sun, 31 Jul 2005 22:08:37 +0200 Der Lockruf des Kaos [EMAIL PROTECTED] babbled: ecore_* takes a pointer to a function whereas boost::bind returns an object (that can be used as a function by operator overloading). to use a member function you need both a pointer to an object instance

Re: [e-users] Problem using boost::bind and ecore_ipc from Enlightenment

2005-07-31 Thread xnowfall
i'm not sure how you mean to use a smart_ptr - maybe we're talking about different things here? a smart_ptr is also an object and can't be passed to a function expecting a function pointer. as for the example, i'm guessing you mean the SignalHandler class? i don't really see the point of that