title: How to implement an outgoing interface on a sink object (C++)
body: <p>I have a <b>predefined</b> TLB file, with IS8SimulationEvents wrapper method implementations, for instance:</p>
  
  <pre><code>inline HRESULT IS8SimulationEvents::S8SimulationReset ( ) {
      HRESULT _result = 0;
      _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&amp;_result, NULL);
      return _result;
  }
  </code></pre>
  
  <p>Using Oleview, I can see the <b>IConnectionPointContainer</b> interface attached to the COM object.</p>
  
  <p><b>Question:</b></p>
  
  <ul>
  <li>How do I implement the outgoing interface on a sink object, for the client to receive event notification from the COM <strong>object</strong></li>
  </ul>
  
  <p><strong>Without:</strong></p>
  
  <ul>
  <li>ATL</li>
  <li>MFC</li>
  </ul>