My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 138: Error "Class not registered returned" when CoCreateInstance is called to create "GoogleDesktop.QueryAPI"
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by Philly...@gmail.com, Apr 8, 2011
I have registered my Query pulgins successfully using Google Desktop registration API. When I try to create "GoogleDesktop.QueryAPI" (GoogleDesktopQueryAPI) object as below I get the error as follows and it takes a long time for it to come back. 

CComPtr<IGoogleDesktopQueryAPI2> spGoogleDesktopQueryAPI ; 
HRESULT hr = spGoogleDesktopQueryAPI.CoCreateInstanc(CLSID_GoogleDesktopQueryAPI); 

The second line above returns REGDB_E_CLASSNOTREG (0x80040154) error.

Now, if I make another call (as below) to the CocreateInstance immediately after the above failure the call succeeds and things works fine until I exit my program and make the call first time. 

hr = spGoogleDesktopQueryAPI.CoCreateInstance(CLSID_GoogleDesktopQueryAPI); 

Any help will be appreciated.


Powered by Google Project Hosting