Jialiang Ge has just finished a summary of solutions to invoke native C++ DLL from .NET code.Solution 1. (Explicit) P/Invoke
Solution 2. Dynamic P/Invoke
Solution 3. Implicit P/Invoke (Use a C++/CLI wrapper)
Solution 4. Convert C++ DLL to a COM server, and call it from .NET code through .NET-COM interopThe detailed and working code samples are attached to the above article. If you have any comments or questions about the code samples, please do contact onecode@microsoft.com. Your feedback is very important to the work. Read more: All-In-One Code Framework
Solution 2. Dynamic P/Invoke
Solution 3. Implicit P/Invoke (Use a C++/CLI wrapper)
Solution 4. Convert C++ DLL to a COM server, and call it from .NET code through .NET-COM interopThe detailed and working code samples are attached to the above article. If you have any comments or questions about the code samples, please do contact onecode@microsoft.com. Your feedback is very important to the work. Read more: All-In-One Code Framework