[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

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 .
0
ANR
Asked:
ANR
  • 3
  • 3
1 Solution
 
jtwine100697Commented:
  (I believe) You are going to have to use the MultiMedia APIs for that.

-=- James.
0
 
Tommy HuiEngineerCommented:
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
 
ANRAuthor Commented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Tommy HuiEngineerCommented:
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
 
ANRAuthor Commented:
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
 
Tommy HuiEngineerCommented:
You also need to link with VFW32.LIB. Add this to your link libraries.
0
 
ANRAuthor Commented:
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

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now