Metro ap create a c++ opencv application error :'CoCreateInstanceFromApp': identifier not found RRS feed

  • Question

  • Hi ,

    I create a c++ opencv application,error:'CoCreateInstanceFromApp': identifier not found when I bulid it.

    Can anyone help to answer this question?

    Monday, January 9, 2012 2:56 AM

All replies

  • If this isn't a Metro style app project then this is likely not the correct forum for this question.

    If you are using a metro style app project, could you elaborate on your project type and the exact build error? A snippet of the source failing to compile would be useful as well. The syntax for that desktop Win32 API is here: CoCreateInstanceFromApp




    Thursday, January 12, 2012 12:52 AM
  • #include"combaseapi.h"



    Tuesday, February 14, 2012 11:38 AM
  • can you call the com interface now?

    I have the same problem


    Friday, March 16, 2012 5:31 AM
  • I had this same problem, in my case it was an old library that I was trying to port to winrt and I had defined somewhere #define _WIN32_WINNT 0x0601. Changing it to #define _WIN32_WINNT 0x0602 solved the issue for me.
    Tuesday, May 15, 2012 5:57 AM