Can a DLL call a .NET DLL?

Can a native DLL call a .NET DLL?

+6
clr interop
source share
3 answers

No, you need to use managed C ++

+4
source share

Without using COM, you should write a C ++ / CLI wrapper. Your own code, which includes your shell's header file, must be compiled with / clr (common language support for execution).

Just for curiosity, why not use COM interoperability? Check the regasm.exe and tlbexp.exe tools.

+1
source share

You need to do something for the managed world and the uncontrollable world to work together. If you do not want to use COM, you can create wrapper classes in C ++ / CLI.

Here is an article to help you get started: .NET to C ++ Bridge .

+1
source share

All Articles