Knowledge Base

SAMPLE: Using MCI Commands in Visual Basic

Article ID: 116082

Article Last Modified on 8/5/2004


APPLIES TO


This article was previously published under Q116082

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

REFERENCES

You can find more information on command strings that you can send by using mciSendString() in the following resources:

The "Microsoft Video for Windows Development Kit," version 1.1, comes with a robust sample of how to use the features of the custom-control file MCIWNDX.VBX. This sample is called "VBMCITst".

In addition, there is a helpful topic in both the DK_DOC.HLP and DK_DOC.MVB files titled "Comparing MCIWNDX.VBX to MCI.VBX".

Additional query words: softlib VBMCI.EXE

Keywords: kb16bitonly kbfile kbmm kbsample KB116082