D
DBT
I'm sure this is simple if you know how.
I've got .h files and .lib files for a C language API that I need to access
from a C# assembly.
For the sake of this question, assume there are two .h files (ctap.h and
rtap.h) and three .lib files (a.lib, b.lib, c.lib). There are six functions
to be accessed (void afunc1(int), char afunc2(char []), void bfunc1(float),
double bfunc2(int *), void cfunc1(char), char[] cfunc2(char [])).
Can you provide a quick example, or the code, or a clear walkthrough on how
to wrap these in a C++ managed wrapper that will allow a C# assembly to
access the 6 named functions?
I've got .h files and .lib files for a C language API that I need to access
from a C# assembly.
For the sake of this question, assume there are two .h files (ctap.h and
rtap.h) and three .lib files (a.lib, b.lib, c.lib). There are six functions
to be accessed (void afunc1(int), char afunc2(char []), void bfunc1(float),
double bfunc2(int *), void cfunc1(char), char[] cfunc2(char [])).
Can you provide a quick example, or the code, or a clear walkthrough on how
to wrap these in a C++ managed wrapper that will allow a C# assembly to
access the 6 named functions?