D Dave Theese Sep 22, 2003 #1 A broad question: To what extent is it possible to have C# code integrate with *unmanaged* C++ code?
J Joe Mayo Sep 22, 2003 #2 Dave Theese said: A broad question: To what extent is it possible to have C# code integrate with *unmanaged* C++ code? Click to expand... 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
Dave Theese said: A broad question: To what extent is it possible to have C# code integrate with *unmanaged* C++ code? Click to expand... 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
R Richard Sep 22, 2003 #3 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#. Click to expand... 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
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#. Click to expand... 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
R Randy Charles Morin Sep 22, 2003 #4 C# interop is quite extensive. Not much you can't do. Although, I'll admit figuring out how is often difficult. Randy http://www.kbcafe.com
C# interop is quite extensive. Not much you can't do. Although, I'll admit figuring out how is often difficult. Randy http://www.kbcafe.com