title: _pAtlModule pointer is null when i try to CreateInstance using the CComObject function
body: <p>I am working on the OPC(OLE process Control)Client program,with the asynchronous CALLBACK methods to get data from PLC using the KepServer.But I encountered the issue:</p>
  
  <pre><code>CComObject&lt;COPCDataCallback&gt;* pCOPCDataCallback;    // Pointer to Callback Object
  
  // Create Instance of Callback Object using an ATL template
  CComObject&lt;COPCDataCallback&gt;::CreateInstance(&amp;pCOPCDataCallback);
  </code></pre>
  
  <p>and then it stopped at here:</p>
  
  <pre><code>_pAtlModule-&gt;Lock();
  </code></pre>
  
  <p>this is in the atlcom.h </p>
  
  <p>any ideas of how to solve this issue?</p>