/COM-Interop-with-NET

Demonstrate COM Interop with .NET using classic (IConnectionPoint) and delegate models.

Primary LanguageC#

COM-Interop-with-NET

Sample code demonstrate COM Interoperability with .NET using classic (IConnectionPoint) and delegate (.net delegates) models. For example, in this project showed how to interact with Microsoft Word for monitoring all opened documents.

Summary, using classical model is more efficient for cases when you need to get much more events from COM. In other cases using .net delegates is preferable because code is much easy for understanding and maintenance.

For additional information on this topic:

  1. http://blogs.msdn.com/b/rcook/archive/2012/05/09/9023741.aspx
  2. http://support.microsoft.com/kb/811645
  3. http://www.codeproject.com/Articles/990/Understanding-Classic-COM-Interoperability-With-NE