Accessing the OutputPort.Value property
Since the Value property returns a variant value, use CComVariant to declare the pointer l_varOutPrimitive and then set the pointer to member operators to match the name of the property from the XSI object model:
// Where I've already defined in_pOutputPort as an entry point
CComVariant l_varOutPrimitive;
l_hr = ( in_pOutputPort->get_Value( &l_varOutPrimitive ));
CComQIPtr< Primitive > l_pOutPrimitive( V_DISPATCH( &l_varOutPrimitive ));This is the equivalent to the following VBScript snippet:
' Where I've already defined oOutPort
Set vOutPrim = oOutPort.Value