Solved

How to play a AVI to a Direct Draw Surface

Posted on 1998-11-07
1
456 Views
Last Modified: 2013-12-03
How do you play a AVI file to a Direct Draw surface without using the MFC. I am mainly using C to code DirectX programs and learnt most of what I know from the book "windows game programming for dummies".
I know this question has been asked before, but I couldn`t get the answer to work. It gave a C++ class that solved the problem. I downloaded this class and couldn`t run the pre compliled exe version, let alone get the source code to work.
I have the Direct X 5 and 6 sdk`s and am using Visual C++ 5.

Please answer this question as i`m about to pull all my hair out trying to find information about it.
0
Comment
Question by:gnimmel
1 Comment
 

Accepted Solution

by:
zhongxu earned 160 total points
ID: 1415849
You can create a DirectDraw and a Surface,than Create a instance of CLSID_AMMultiMediaStream,an MediaStream than initialize it and
open and render it on directdraw surface...
please lookup a sample in DirectX Media SDK "\DXMEDIA\SAMPLES\DS\SHOWSTRM".
good lucky for you!
Zhongxu.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question