I’ve created a C# application. Within this application I would like to use/run a C++ API from another project(the API is written in macro coding). I tried import the dll of that C++ project and tried to call a functions which belongs to that API. The problem is that it throws “unable to find method” error.
How can I run a C++ project in a C# project?
You can’t add a native DLL as a reference to a managed project. You have 3 main options:
For any serious amount of code, option 3 is the most productive and effective approach.