Sumit Memane
Sumit Memane

Reputation: 5

Adding dll created in VC++ in C# 2010

I have a dll created in VC++ and visual studio 2005 now i want to add same dll in my C# application and VS2010.

But whenever i tried it gives me erro "a reference to "../name.dll"could not be added please make sure that the file is accessible and that it is a valid assembly or com component"

Upvotes: 0

Views: 67

Answers (1)

Tilak
Tilak

Reputation: 30688

Seems like C++ dll is native dll (and not managed C++/CLI)

You need to look at P/Invoke.

Platform Invoke Tutorial
DLL Import

Upvotes: 1

Related Questions