Invoke Native C++ DLL from .NET Code
· One min read
There are 4 Approaches to accomplish this.
Approach
- (Explicit) P/Invoke Approach
- Dynamic P/Invoke Approach
- Implicit P/Invoke (Use a C++/CLI wrapper) Approach
- Convert C++ DLL to a COM server, and call it from .NET code through .NET-COM interop
I don't like to reinvent the wheel so please go through msdn forum answer here