Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Bringing up .avi viewer from MFC program

Posted on 1997-12-31
1
Medium Priority
?
1,017 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
[X]
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
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

636 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