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.