Link to home
Start Free TrialLog in
Avatar of ANR
ANR

asked on

URGENT : play AVI with sound using MFC other than CAnimateCtrl

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 .
Avatar of jtwine100697
jtwine100697
Flag of United States of America image

  (I believe) You are going to have to use the MultiMedia APIs for that.

-=- James.
ASKER CERTIFIED SOLUTION
Avatar of Tommy Hui
Tommy Hui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ANR
ANR

ASKER

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 ???
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.
Avatar of ANR

ASKER

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...
You also need to link with VFW32.LIB. Add this to your link libraries.
Avatar of ANR

ASKER

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....