Solved

Bringing up .avi viewer from MFC program

Posted on 1997-12-31
1
997 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
ID: 1313286
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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