-
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.
-
Re: CoCreateInstance
Thanx a lot, works perfectly now!!
Regards, Frederik.
-
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