Using COM Objects in .NET Code

First we’ll look at .NET code using COM objects. Before we look at arbitrary COM objects that implement IUnknown and other custom interfaces, we will spend some time looking at using objects that support Automation—in other words, the special case of COM objects that implement IUnknown and IDispatch as well as other custom interfaces. Use of Automation is very common in Win32 code as Automation servers are widely available. The applications that make up Microsoft Office are prime examples of Automation servers that offer a rich hierarchy of objects supporting Automation.

Late Bound Automation

In Delphi for Win32, we orchestrate a late bound Automation session using a Variant. A Variant can be initialized with a ...

Get Delphi for .NET Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.