C++ DLL used in C# project

  • Thread starter Thread starter Negah Hekmati via .NET 247
  • Start date Start date
N

Negah Hekmati via .NET 247

(Type your message here)

--------------------------------
From: Negah Hekmati
Hi All
I want to use a c++ DLL in my c# project and when I add reference at my project it will show
my dll is not a valid assembly or COM component.
I know that I should to implelments some interfaces but I don't know what are these (as I know 3)interfaces and how can I generate the codes.
If anyone has any idea or any link that describe about these Interfaces please E-mail me!
Thanks
 
Negah Hekmati via .NET 247 said:
(Type your message here)

--------------------------------
From: Negah Hekmati
Hi All
I want to use a c++ DLL in my c# project and when I add reference at my
project it will show
my dll is not a valid assembly or COM component.
I know that I should to implelments some interfaces but I don't know what
are these (as I know 3)interfaces and how can I generate the codes.
If anyone has any idea or any link that describe about these Interfaces
please E-mail me!
Thanks

To use a C++ dll in a project you have to use p/invokes to get access,
adding it to your project will not tell it how to access the code.

Check www.pinvoke.net they may have the necessary information.
 
Back
Top