TMar

I have a set of cameras that I need to write a program to operate and the manufacturer provides an SDK in C++. However, the system I need to interface with is all being written in C# and I need to know if there will be a problem running those function (I assume there will be)


Re: Visual C# General Using C++ SDK in C#?

Irfan Kiyani

If that SDK exports C style functions, you can call them from C# using the PInvoke functionality as described here

http://msdn2.microsoft.com/en-us/library/55d3thsc(VS.80).aspx

If that SDK exports classes then you may need to write a C wrapper for those and call those wrapper methods using PInvoke.