Do I have to create a C# DLL to call C++ DLL or I can call it directly from my C# application?
Asked
Active
Viewed 424 times
3
-
Please don't duplicate the tags ("C#") in the title. Just leave them in the tags. – John Saunders Jun 18 '10 at 22:43
2 Answers
7
You can call it directly with PInvoke and the DllImport
attribute. Assuming, of course, that it has standard C entry points, not compiler-specific C++ entry points.
Unless you were talking about C++/CLI, in which case you would reference the .NET DLL exactly as you would reference any other .NET DLL.

Mark Rushakoff
- 249,864
- 45
- 407
- 398
1
You can call a Win32 navite dll directly from your code using P/Invoke.

Michał Piaskowski
- 3,800
- 2
- 34
- 46