Importing and Using COM Objects

The .NET Framework 4.0, like previous versions, offers support for interoperability with the COM architecture via an engine named Runtime Callable Wrapper, which is the infrastructure that provides a communication bridge between .NET and COM. It is also responsible for type marshaling and handling events. Because of this engine, you can import COM objects and use them in your managed applications. Basically you can import two kinds of COM components: type libraries and ActiveX components. Importing COM components is basically accomplished via two command-line tools: TlbImp.exe, which is required to import a type library, and AxImp.exe, which is instead required for importing ActiveX controls. This chapter does ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.