title: cocreateinsatnce returns the system cannot find the file specified in COM
body: <pre><code> CoInitialize(NULL);
  GCalender::IGCalenderSync* pGCalender;
  HRESULT hr = CoCreateInstance(__uuidof(GCalender::GCalenderSyncHelper),NULL, 
     CLSCTX_INPROC_SERVER,__uuidof(GCalender::IGCalenderSync),(void**)&amp;pGCalender);
  
  GCalender::GenericEvent HUGEP *pDeletedEvents;  
  GCalender::GenericEvent HUGEP *pUpdatedEvents;  
  GCalender::GenericEvent HUGEP *pNewEvents;  
  
  SAFEARRAY* deletedEvents, *updatedEvents, *newEvents;
  pGCalender-&gt;GetAllEvents(&amp;deletedEvents, &amp;updatedEvents, &amp;newEvents);
  
  hr = SafeArrayAccessData(newEvents, (void HUGEP* FAR*)&amp;pNewEvents);
  SafeArrayUnaccessData(newEvents);
  hr = SafeArrayAccessData(deletedEvents, (void HUGEP* FAR*)&amp;pDeletedEvents);
  SafeArrayUnaccessData(deletedEvents);
  hr = SafeArrayAccessData(updatedEvents, (void HUGEP* FAR*)&amp;pUpdatedEvents);
  SafeArrayUnaccessData(updatedEvents);
  CoUninitialize();
  </code></pre>
  
  <p>in the above code the HR value is 0X8007002 ( system cannot find the file specified)
  How to resolve this.</p>