Geeks With Blogs

When dealing with managed code and unmanaged code together there are several nuances that change the way that interoperability is implemented and things can easily get confusing. For instance, dealing with Win32 COM dlls, plain vanilla Win32 dlls, and ActiveX controls from managed C# all have their own means. An interop assembly can be created for Win32 COM dlls so that it can be referenced from a C# project directly. However, to use regular Win32 dlls from a C# project, you must utilize Platform Invoke. Further, for ActiveX controls you need to generate a wrapper control, which can then be used to reference from you C# project. All these methods are explained in more detail here:

Posted on Thursday, June 1, 2006 8:24 AM .NET , C/C++ , Interoperability | Back to top

Copyright © Devin A. Rychetnik | Powered by: