|
-
May 12th, 1999, 01:43 PM
#1
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.
-
May 12th, 1999, 04:30 PM
#2
Re: CoCreateInstance
Thanx a lot, works perfectly now!!
Regards, Frederik.
-
May 16th, 1999, 04:43 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|