Solved

URGENT :  play AVI with sound using MFC other than CAnimateCtrl

Posted on 1998-03-30
7
492 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

943 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

19 Experts available now in Live!

Get 1:1 Help Now