Microsoft KB Archive/98769

= Playing an .AVI File with the MCITEST Example =

Article ID: 98769

Article Last Modified on 10/30/2003

-

APPLIES TO


 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q98769



SUMMARY
This article shows how to modify the multimedia sample project MCITEST.MAK to load and play Microsoft Video for Windows files (.AVI files). To apply the information in this article, you must have Video for Windows drivers correctly installed and a valid .AVI file available.



MORE INFORMATION

 * 1) Open the project VB\SAMPLES\MCI\MCITEST.MAK.

 Select MCITEST.FRM in the Project Window. From the View menu, choose Code. In the Object combo box, select AI_ANIMATION to display the AI_ANIMATION_Click event handler.  Modify the common dialog Filter to display .AVI files: change: OpenDlg.CMDialog1.Filter = &quot;Movie File (*.mmm)|*.mmm&quot; to: OpenDlg.CMDialog1.Filter = &quot;Movie File (*.avi)|*.avi&quot;

Modify the DeviceType to access the AVI drivers: change: Animate.MMControl1.DeviceType = &quot;MMMovie&quot; to: Animate.MMControl1.DeviceType = &quot;AVIVideo&quot;

 Select ANIMATE.FRM in the Project Window. From the View menu, choose Code. In the Object combo box, select AI_OPEN to display the AI_OPEN_Click event handler.  Modify the DeviceType to access the AVI drivers. Scroll down by pages to find the location for this change. change: Animate.MMControl1.DeviceType = &quot;MMMovie&quot; to: Animate.MMControl1.DeviceType = &quot;AVIVideo&quot;

 Save the work, and run the application.

Additional query words: 2.00 3.00 mci control multimedia multi media

Keywords: KB98769

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.