Definition: Multithreading in COM is referred to as the apartment model in COM Continue reading
Containment and aggregation are techniques in which one component uses another component. Those two components are outer component, inner component. Outer component contains the inner component.
|Outer component re implement the interface say IY of inner component by forwarding calls to the inner component.||Outer component will not re implement the interface say IY of inner component. Instead the outer component passes the inner component interface pointer say IY directly to the client.|
|Outer component is client to inner component||Inner component will be directly used by the client|
Creating comMathServLib which is a COM In-Process DLL for implementing an Simple Addition (Add) and Subtraction (Sub) functions by writing IMath interface . Finally a console application ‘comClient‘ will consumes the comMathServLib.
1. Definition of COM
2. Advantages of COM
3. Definitions of the COM Basic Elements
- COM Component
- COM Interface
- The IUnknown Interface
4. Working with COM Objects