Solved

Bringing up .avi viewer from MFC program

Posted on 1997-12-31
1
994 Views
Last Modified: 2013-11-20
I am using MFC 5.0.  From within my program I would
like to play an .avi file.  Is there a way to fire up
an .avi player and have it play a particular file from
within an MFC program?
0
Comment
Question by:titchener
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 200 total points
Comment Utility
If your .avi file has RLE copression you can use windows animate common controls and its MFC wrapper CAnimateCtrl. Palette must not change from frame to frame in this case. If your .avi file is more complicated you can use Microsoft Active Movie control which is free redistributable. You must enable ActiveX controls support for your project and insert this control using component gallery. ClassWizard will create class wrapper for this controls and oyur can either place control in your dialog resource or create it dinamically. Then use Active Movie methods to load and play .avi files. The third way is to use multimedia API functions and MCI for playing .avi files. See MFC samples AVIEDIT and AVIVIEW for more details.
If you want to play your .avi file in separate process and separate window use FindExecutable API function to find executable associated with .avi files and ShellExecute API function to launch it passing file to play as command line.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sameEnds challenge 3 105
sumHeights  challenge 17 59
changeXy challenge 13 56
firstChar challenge 13 82
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now