Advertisement Jump to content
Sign in to follow this  
marcin - rem

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

This topic is 4920 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!