aachyee / google-desktop-sdk

Automatically exported from code.google.com/p/google-desktop-sdk
0 stars 0 forks source link

Error "Class not registered returned" when CoCreateInstance is called to create "GoogleDesktop.QueryAPI" #138

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by Philly...@gmail.com on 8 Apr 2011 at 4:06