B
Bart Simpson
I have written a library in ('native') C++, and I have made a lot of use
of function pointers e.g.:
/* Example C++ callbacks:
typedef void (*CBFUNC1)(unsigned int, const char*, object&);
typedef object* (*CBFUNC2)(object*, struct _mystruct* );
*/
How may I call back into C# code? - ideally, I would like the callbacks
to 'raise events' (so that more than one event sinks may 'get in on the
act') but failing that, simply executing code on the C# side will suffice.
of function pointers e.g.:
/* Example C++ callbacks:
typedef void (*CBFUNC1)(unsigned int, const char*, object&);
typedef object* (*CBFUNC2)(object*, struct _mystruct* );
*/
How may I call back into C# code? - ideally, I would like the callbacks
to 'raise events' (so that more than one event sinks may 'get in on the
act') but failing that, simply executing code on the C# side will suffice.