Click to See Complete Forum and Search --> : CoCreateInstance


fwehlin
May 12th, 1999, 01:43 PM
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.

fwehlin
May 12th, 1999, 04:30 PM
Thanx a lot, works perfectly now!!

Regards, Frederik.

ksheeraj
May 16th, 1999, 04:43 AM
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