O'Reilly logo

Microsoft® Visual Basic® .NET 2003 Kick Start by Joel Semeniuk, Erik Porter, Andy Baron, Duncan Mackenzie

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

Accessing COM Objects from Visual Basic .NET

By far, one of the most common and important forms of COM interop is the consumption of COM objects from inside of managed applications. Runtime Callable Wrappers enable such consumption. The following sections describe how to create and consume Runtime Callable Wrappers from your managed applications.

Creating a Runtime Callable Wrapper Automatically

In order to access COM objects from managed code, you need to have a Runtime Callable Wrapper. You can obtain RCWs for COM objects in two ways. The first is to create them yourself, and the second is to use the vendor's PIAs (Primary Interoperability Assemblies). In this section, you will see how you can create RCWs for virtually any COM object, leaving ...

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