C# / unmanaged C++ integration

  • Thread starter Thread starter Dave Theese
  • Start date Start date
D

Dave Theese

A broad question:

To what extent is it possible to have C# code integrate with *unmanaged* C++
code?
 
Dave Theese said:
A broad question:

To what extent is it possible to have C# code integrate with *unmanaged* C++
code?


Hi Dave,

There are a few options:

P/Invoke, which uses the DllImport attribute to decorate a proxy to a Win32
DLL method.

COM Interop, which lets you communicate with COM objects via proxies.

It Just Works (IJW), where you can wrap the unmanaged C++ code in managed
C++ code and then call the managed C++ wrapper from C#.

Joe
 
It Just Works (IJW), where you can wrap the unmanaged C++ code in managed
C++ code and then call the managed C++ wrapper from C#.


I'll second this comment. I have done code from C#, to
managed C++ wrappers, to unmanaged C++ code running on
worker threads, and back. IJW...

--Richard
 
Back
Top