Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Bringing up .avi viewer from MFC program

Posted on 1997-12-31
1
1,003 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
Host to IP 7 80
How do you programatically show and hide the Windows 10 On-Screen-Keyboard? 3 796
Problem to App 4 97
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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