Help and Support

Open Multiple AVIs, Use of MCI_PUT Command

Article ID:115566
Last Review:August 30, 2004
Revision:2.2
This article was previously published under Q115566

SUMMARY

The AVIWIN sample demonstrates how you can open and close AVI files in the background while playing another AVI file. This sample also demonstrates the MCI_WINDOW and MCI_PUT commands.

NOTE: The Open command takes 1 to 2 seconds to complete. On slower machines, the playback of one AVI is slightly disrupted if you try to open another AVI file in the background. This disruption might cause some video frames to be dropped or skipped.

When you run the AVIWIN.EXE file, remember that you can only play an AVI if you have already opened it. The menu items are always enabled, even when the command should not be run. For example, the Play menu commands are always enabled, even when the MCI_PLAY command would fail. If you try to play an AVI before you open it, you get the following message box:
Reminder: Did you Open the first/second AVI? [Yes] [No]
If you click "Yes," you see the error message that returned from the mciSendCommand() function. If you click "No," the focus returns to the AVIWIN.EXE file, and you are then able to open an AVI file.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:


Aviwin.exe (http://download.microsoft.com/download/win31/utility4/1/w31/en-us/aviwin.exe)

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. This sample was written in Microsoft Visual C++ version 1.5. The source files of the AVIWIN are listed below and are contained in the archive file AVIWIN.EXE.
ABOUT.C
AVIWIN.C
AVIWIN.DEF
AVIWIN.H
AVIWIN.MAK
AVIWIN.RC
DIGITALV.H
README.TXT
RESOURCE.H

APPLIES TO
Microsoft Windows Software Development Kit 3.1

Back to the top

Keywords: 
kb16bitonly kbfile kbmm kbsample KB115566

Article Translations

 

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.