title: Confirmed Registered COM Object CoCreateInstance returning REGDB_E_CLASSNOTREG
body: <p>I have an ATL DLL that I am trying to consume from an ATL Exe.  When I try to create an instance of the object in the DLL it fails with an error REGDB_E_CLASSNOTREG. I have checked the registry and I can see the object is registered, both the ProgID as well as the CLSID.</p>
  
  <pre><code>CComPtr&lt;IMyInterface&gt; ptrMyInterface;
  ptrMyInterface.CoCreateInstance(L"ProgID", nullptr, CLSCTX_ALL); // Fails
  
  CLSID myClsid;
  CLSIDFromString(L"{MyCLSID}"), &amp;myClsid);  // Correctly looks up the CLSID
  ptrMyInterface.CoCreateInstance(myClsid, nullptr, CLSCTX_ALL); // Also fails
  </code></pre>
  
  <p>Any suggestions</p>