Drone 605
Drone 605

Reputation:

Can a DLL call a .NET DLL?

Can a native DLL call a .NET DLL?

Upvotes: 6

Views: 490

Answers (3)

tranmq
tranmq

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

Stéphane Bonniez
Stéphane Bonniez

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

ConsultUtah
ConsultUtah

Reputation: 6809

No, you need to use managed c++

Upvotes: 4

Related Questions