0

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.

Cole Tobin
  • 8,881
  • 15
  • 47
  • 69
Naresh Pansuriya
  • 2,028
  • 12
  • 14

1 Answers1

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,125
  • 2
  • 46
  • 59