April 2002
Intermediate to advanced
1024 pages
23h 26m
English
Every unmanaged object is potentially a COM object. When managed code needs to access unmanaged code in the form of a COM component, the type library needs to be converted to assembly metadata information. This assembly metadata is used to form a Runtime Callable Wrapper (RCW) that handles marshaling, error conversion, and lifetime management. For unmanaged code to access a managed COM component, the assembly metadata needs to be converted into type library information. In addition, the registry needs to be modified appropriately to support the .NET component. All of this sets up the framework for building another wrapper component known as a COM Callable Wrapper (CCW). The CCW is illustrated in Figure 9.1 ...
Read now
Unlock full access