April 2002
Intermediate to advanced
1024 pages
23h 26m
English
As has already been shown in earlier chapters, information about methods and properties, metadata, is stored in assemblies. With COM, the type library provides information to the caller about interfaces, properties, and methods. To call a COM method from .NET, a bridge needs to be formed to translate between the information contained in the type library and the metadata information required in a .NET application. This bridge in the case of .NET calling a COM component is the Runtime Callable Wrapper (RCW for short). Figure 8.1 shows how a .NET application interacts with a COM component through the RCW. For reference, this figure also shows how a “traditional” unmanaged application calls into a COM component.
Read now
Unlock full access