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
  • 9,206
  • 15
  • 49
  • 74
Naresh Pansuriya
  • 2,027
  • 12
  • 15

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,872
  • 2
  • 46
  • 62