Microsoft KB Archive/116082

{|
 * width="100%"|

SAMPLE: Using MCI Commands in Visual Basic

 * }

Q116082

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK) 3.1
 * Microsoft Video for Windows Development Kit, version 1.1
 * Microsoft Visual Basic Standard Edition for Windows, version 3.0

-

SUMMARY
The VBMCI sample shows how to use the function "mciSendString" in Microsoft Visual Basic to play multimedia files. This sample also uses the custom control "MMControl" from the MCI.VBX custom-control file to play multimedia files. You may find it easier to use MMControl to manipulate multimedia files than to use mciSendString commands.

MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

"Vbmci.exe" For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

This sample demonstrates only a few of the features of MMControl and a few of the commands strings that mciSendString can use. The "Microsoft Visual Basic Professional Features," Book 1, contains a complete description of all of the features of MMControl.

The following files are included in the file VBMCI.EXE:

FORM1.FRM

FRMABOUT.FRM

GLOBAL.BAS

MCIVBX.FRM

OPENDLG.FRM

README.TXT

VBMCISTR.MAK