How to use C++ dll with C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to .NET programming. I have a .dll written in C++ that I would like
to use in C# program. Is it possible to do that and how? If I try to add with
Add Reference, I can't.
 
You can only add reference to COM DLLS and .NET assemblies.
For calls to C++ you'll need interop (see the DllImport statement!)
 
Back
Top