C library wrapper

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top