Solved

URGENT :  play AVI with sound using MFC other than CAnimateCtrl

Posted on 1998-03-30
7
475 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 60
repeatEnd java challenge 42 83
Strange date stored 22 100
Problem to event 3 50
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

16 Experts available now in Live!

Get 1:1 Help Now