locked
0x80040154 classnot registered on WINRT

    Question

  • we have written small COM but when we tried to use on WINRT by using

    CoCreateInstance(CLSID_CIMGResize,

    NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&m_spResizer));

    we got above error ..Can any help us.

    Thanks in advance

    Ram

    Friday, June 15, 2012 10:51 AM

Answers

  • That error means that the COM component is not registered where the application can find it. CLSID_CIMGResize is not available to your Metro style app.

    Metro style apps do not have access to the registry and cannot use arbitrary COM objects. You will need to include your COM object in your app package and load it with registration free COM.

    See

    • Marked as answer by Jesse Jiang Monday, June 18, 2012 11:42 AM
    Friday, June 15, 2012 11:59 AM
    Owner