C library wrapper

  • Thread starter Thread starter Yaniv Oliver
  • Start date Start date
Y

Yaniv Oliver

Hey,

I'm currently writing a C# wrapper for a library that was originally written
in C.
The wrapper is basiclly working, but I'm having trouble writing a wrapper
for this kind of code segment:

typedef int (*callback_function)(char *string);
__declspec(dllimport) BOOL DLL(some_function)(callback_function
some_ther_function);

I was thinking about using delegations in order to wrap this up (will this
even work?), but I'm not sure thats the right way to do this.

Any suggestions on how to do this?

Thanks,
Yaniv Oliver
 
Back
Top