Sign in to follow this  
marcin - rem

How to get the surface if I have only pointer to IGraphBuilder?

Recommended Posts

Is it possible? The problem is that I have only a pointer to the IGraphBuilder object, and I don't have pointer to IDirectDraw nor IDirectDrawSurface. Is it possible to somehow get the pointer to the surface. I tried to get pointer to IBaseFilter by using the findfilterbyname function of IGraphBuilder, then get the pointer to IDirectDrawVideo by using pointertobasefilter->QueryInterface(IID_IDirectDrawVideo, (void**)&pointertoddvideo) and finally to get pointer to idirectdraw and use createsurface function. Everything would be ok, but queryinterface returns that IBaseFilter doesn't support IDirectDrawVideo interface. I've searched microsoft msdn for information if IBaseFilter supports IDirectDrawVideo interface, but without succes. So I don't even know if it does. Any suggestions. Thanks for any advise.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this