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.
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;
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.