Solved

URGENT :  play AVI with sound using MFC other than CAnimateCtrl

Posted on 1998-03-30
7
518 Views
Last Modified: 2013-11-20
Hi,
We want to know how to play any type of AVI with sound in a window  using MFC , please help  !!
We tried using CAnimateCtrl but it plays simple AVI's with out sound .
0
Comment
Question by:ANR
  • 3
  • 3
7 Comments
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1317322
  (I believe) You are going to have to use the MultiMedia APIs for that.

-=- James.
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1317323
Try using the MCI_WINDOW_CLASS in VFW.H. It provides a simple window which you can load an AVI and play it using messages.


0
 

Author Comment

by:ANR
ID: 1317324
I had tried to use the MCI but the header file <mciwnd.h> is some how missing from VC 5.0 Professional edition. How Can U help me ???
also are there any ActiveX controls to play an avi ???
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1317325
It is not in the file mciwnd.h, it is in vfw.h.

I'm not aware of any ActiveX controls that play an AVI, I suppose there has to be one somewhere.
0
 

Author Comment

by:ANR
ID: 1317326
In VFW.h <mciwnd.h> is #included and that is not to be found anywhere. I tried the thing out and it gave a
Linker Error Unresolved External symbol _mciwndCreateA
Please help...
0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1317327
You also need to link with VFW32.LIB. Add this to your link libraries.
0
 

Author Comment

by:ANR
ID: 1317328
Yahooooo and Celebrations . The Program did work after all...
I also found out the ActiveX control that plays the AVI. The MCIWNDx active X control is most appropriate for the same....
Thanks a lot for Your timely and valuable help....
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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
while loop over for loop 7 115
centeredAverage challenge 8 179
wordappend challenge 8 200
x-bar in Google Sheets 2 70
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

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