I can not get COM Class Factories
<p>In the following link to the archive of the source server and client training for COM,
is taken from the "Active Xpert" Tom Armstrong.<br>
I use Windows 7, Visual Studio 12, C++</p>

<p><a href="https://mega.co.nz/#!WBJkgJpI!Z1hAd2gMySIrPNxlZ5-oUTOOYjtHBhTufJqpMAp6NA8" rel="nofollow">https://mega.co.nz/#!WBJkgJpI!Z1hAd2gMySIrPNxlZ5-oUTOOYjtHBhTufJqpMAp6NA8</a></p>

<p>All is well compiled and collected. Register a COM using the reg file.
But the client receives the data clsid</p>

<pre><code>HRESULT hr = :: CLSIDFromProgID (szWideProgID, &amp; clsid);
</code></pre>

<p>A below given line returns hr = REGDB_E_CLASSNOTREG Class not registered</p>

<pre><code>IClassFactory * pCF;

/ / Get the class factory for the Math class
  hr = CoGetClassObject (clsid,
   CLSCTX_INPROC,
   NULL,
   IID_IClassFactory,
   (void **) &amp; pCF
  );
</code></pre>

<p>Maybe you are confused by what was once a beginner obsnyat how to write COM. So server and client are taken from <a href="http://rsdn.ru/article/com/introcom.xml" rel="nofollow">"Introduction to COM"</a>. There are links to the archives. Designs for the source do not need all laid out "on a silver platter." But it does not work for some reason I / though everything is going ... /. It is clear that in the reg file, change the path to the dll on "my" ... Maybe someone will try to "make" this motor ...</p>
