Reputation:
Can a native DLL call a .NET DLL?
Upvotes: 6
Views: 490
Reputation: 15658
Without using COM, you have to write a C++/CLI wrapper. Your native code that includes the header file of your wrapper needs to be compiled with /clr (common language runtime support).
Just for curiosity, why not using COM interop? Check out the regasm.exe and tlbexp.exe tools.
Upvotes: 1
Reputation: 4657
You need something to make the managed world and the unmanaged world work together. If you don't want to use COM, you can create wrapper classes in C++/CLI.
Here is an article that can get you started: .NET to C++ Bridge.
Upvotes: 1