I have one API that was developed in VC++ and use that API in my C# desktop application. I have no idea how to do that.
Asked
Active
Viewed 79 times
0
-
There's more than one way to do this, your question is far too vague to recommend the best solution. – Hans Passant Aug 19 '13 at 13:55
1 Answers
0
You could consider wrapping the C++ API in C++/CLI then you will be able to call it from C#.
There are some details here
In essence, for a native class define in NativeClass.h you can use it in a C++/CLI project as follows:
#include "NativeClass.h"
public ref class NativeClassWrapper {
NativeClass* m_nativeClass;
};

Community
- 1
- 1

doctorlove
- 18,872
- 2
- 46
- 62