Creating Visual Basic .NET DLLs for COM Clients

In the preceding section, you saw how to use the COM interoperability in one direction. This section looks at this issue from the opposite direction—that is, it describes how to build and register a managed assembly DLL so that it will be accessible to a COM-based application. This ability will allow you to use Visual Basic .NET DLLs to extend the behavior of unmanaged applications that are written in Visual Basic 6 or a scripting language such as JavaScript or VBScript.

When you design a Visual Basic .NET DLL for COM-based clients, you expose functionality through the use of public classes and interfaces. However, your design should take into consideration the fact that COM doesn't support many ...

Get Building Applications and Components with Visual Basic .NET 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.