-1

I have read some thread about EZCAD right here : Loading a C++ DLL in C#

But I do not find a solution code from the author. Is there someone who can give an example of code themselves?

Community
  • 1
  • 1
Myrda Sahyuti
  • 63
  • 3
  • 7
  • Just read the link you submited in your question. – Hoh Mar 03 '14 at 08:02
  • Does this answer your question? [Loading a C++ DLL in C#](https://stackoverflow.com/questions/15707859/loading-a-c-dll-in-c-sharp) – sjagr Dec 21 '19 at 14:58

1 Answers1

0

You can do it this way:

public Test

{

[DllImport("myunmanaged.dll", CharSet = CharSet.Ansi)]

private extern static int UnmanagedFunction(int type, int dest);

}
Kashish Arora
  • 900
  • 5
  • 25
  • 39