title: Access a COM Interface method C++
body: <p>Both:</p>
  
  <ul>
  <li>CLSID</li>
  <li>IID</li>
  </ul>
  
  <p>Having specified the above, and using:</p>
  
  <ul><li>CoCreateInstance()</li></ul>
  
  <p>To returning a single uninitialised object of the class specified by the CLSID above.</p>
  
  <p>How can I then access an Interface's method from C++?
  Without:</p>
  
  <ul>
  <li>ATL</li>
  <li>MFC</li>
  <li>Just plain C++</li>
  </ul>
  
  <p>Afterwards, I use CreateInstance()</p>
  
  <p>I'm having trouble, using CreateInstance() - with the last parameter - ppv </p>
  
  <p>Using oleview, I can see methods of the specified IIDabove IID above, such as:</p>
  
  <pre><code>interface IS8Simulation : IDispatch {
      HRESULT Open([in] BSTR FileName);
  };
  </code></pre>
  
  <p>How can I then access the above? Examples/guidance - please</p>
  
  <p>Regards</p>