Line 1 | Declares an HRESULT to use for COM return values. |
Line 2 | Declares a pointer to interface IF1. |
Line 3 | The client creates an instance of OuterCOMObj, asking for a pointer to IF1. As part of its start-up sequence, OuterCOMObj creates an instance of InnerCOMObj. It next returns a pointer to IF1 to the client. |
Line 9 | Checks to return status of CoCreateInstance. |
Line 12 | The client calls IF1::QueryInterface asking for a pointer to IF2--an interface in InnerCOMObj. |