Calling NET Assemblies from Visual Basic 60 Clients

The .NET Framework was designed from the ground up to interoperate with COM. COM components can call .NET assemblies, and vice versa. Furthermore, .NET assemblies can be built to be referenced just like COM components are referenced. To do this, you build your assembly so that it is COM-callable, and your code will be able to reference the assembly's functionality and interfaces.

COM-callable assemblies can be referenced from Visual Basic 6.0 applications as if they were ordinary COM components. In this case, interoperability may be as simple as referencing the correct assembly's type library (.tlb file) and accessing the desired functionality. However, there is a drawback to using this approach; it will be covered later in this chapter.

0 0

Post a comment