O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required