C++ DLL used in C# project

  • Thread starter Negah Hekmati via .NET 247
  • 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
 
P

Pug

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top