What I was thinking of, I would write a C++ code which basically includes the headers and other stuff and wraps these SDK/lib functions into C++ functions. Then I make a DLL from it and use it in C#.
For instance, the initialization in the C++ part:
Expand|Select|Wrap|Line Numbers
- int initCam(int param)
- {
- return SET_INIT(param);
- //returns with an error code or 0
- }
Would this work? I am not sure this is the proper way to call C/C++ libraries from C# and as I tried a couple of things it doesn't seem to be :)
edit:
I hope I posted to the right place, I wasn't sure where to post this question