none
CoCreateInstance in windows 7 failed (in XP and Vista it was OK) - c++

    Question

  •  

    HRESULT hr;

    hr=CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);

     

    ASSERT(SUCCEEDED(hr));

     

    CComPtr<ITSIMDB> pDBObj;

     

    hr=pDBObj.CoCreateInstance(CLSID_TSIMDB);

    hr result is: "0x80070490 Element Not Found"

    Sunday, September 12, 2010 8:14 AM

All replies

  • Hi ami2003a,

    As the error message said, element is not found.

    Please double check whether the COM component is registered properly in this Windows 7 machine.

    Cheers,

    Yi


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, September 14, 2010 5:49 AM
  • the COM object is registered and i can see it also in the registry (in vista i have no problem)
    Wednesday, September 15, 2010 10:50 AM
  • Can you instantiate the COM object using the OLEVIEW utility?
    Wednesday, September 15, 2010 4:34 PM
  • Hi ami2003a,

    I am writing to check the status of the issue on your side.  Would you mind letting us know the result of the suggestions? 

    Yi


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, September 17, 2010 2:04 AM