.NET Wrappers

  • Thread starter Thread starter David
  • Start date Start date
D

David

I've to write a C# app that interfaces with a 3rd party aPI that is written
in C++

How do I write a .NET wrapper instead of using Pinvoke? Any good examples
or books that will help explain it to me?

Thanks
 
Is the native API that you are going to use comprised of functions only or
does it have COM-visible objects?

If you are going to use functions from the external DLL, you will have to
use P/Invoke. Otherwise, you can add a reference to the library to your
project and Visual Studio will attempt to generate a wrapper around the COM
functionality for you to use.
 
David said:
I've to write a C# app that interfaces with a 3rd party aPI that is written
in C++

How do I write a .NET wrapper instead of using Pinvoke? Any good examples
or books that will help explain it to me?

I think the options are:
- Win32 DLL and DllImport
- COM DLL that is transparent
- mixed mode C++

Arne
 
Back
Top