Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
"Class not registered" problem
[b][red]This message was edited by John_Zhou at 2006-6-29 7:35:43[/red][/b][hr]
I am trying a sample code to playback a AVI file on PDA. The code is written with Directshow. When I debug it, I found the return value is "-2147221164 :Class not registered" for a HRESULT variable. The portion code is as follows:#include #include #include #include
IGraphBuilder *pGraph = NULL;
IMediaControl *pMediaControl= NULL;
IMediaEventEx *pEvent= NULL;
hr=CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC , IID_IGraphBuilder, (void **)&pGraph);
The problem is that the hr returened is -2147221164 (instead of S_OK). Therefore the pGraph is not assigned.
Please give me some ideas to solve the problem.
Thank you very much!
0 · ·