CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Sweden
    Posts
    55

    CoCreateInstance

    Hi,

    I´ve been trying to make an app that plays a movie using DirectShow. I got
    everything to compile ok. but when debugging the CoCreateInstance doesn´t
    return OK, I get a returnvalue of: -2147221008 . This doesn´t tell me
    anything, but maybe someone can tell me what might be wrong?
    This is the call I make: (I have decalred HRESULT hr; and IGraphBuilder
    *pigb

    hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
    IID_IGraphBuilder, (void**)
    &pigb);
    if(FAILED(hr))
    {
    pigb=NULL;
    return FALSE;
    }

    Please help me,

    Regards Frederik.






  2. #2
    Join Date
    May 1999
    Location
    Sweden
    Posts
    55

    Re: CoCreateInstance

    Thanx a lot, works perfectly now!!

    Regards, Frederik.


  3. #3
    Join Date
    May 1999
    Posts
    35

    Re: CoCreateInstance

    If you have these types of hr just goto tools->ErrorLookUp & paset this Hr.You will get the description of this error No.
    Ksheeraj

    39639,Leslie St.
    Apt #157
    Fremont USA 94538

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured