You can use these sample projects to add multimedia capabilities to your Visual Basic program.
These sample projects are for Visual Basic developers familiar with using the Windows API functions.
Play an AVI File Stored in a Resource DLL File
(28,513 bytes)
This sample shows you how to play an AVI file stored in a resource DLL file through Visual Basic. Although you
can add an AVI file to a resource file in Visual Basic and then compile the Visual Basic project into a DLL
file, the AVI file is accessible only through Visual Basic. The sample shows you how to play an AVI file stored
in a resource DLL file created in Visual C++.
Download the sample
project or read the
Microsoft Knowledge Base article for more information.
Play a Streaming Audio File
(28,391 bytes)
This sample shows you how to play streaming audio files by calling several low-level functions in the
Windows API. You can create a program that plays audio files continually without slowing down the operating
system.
Download the sample
project or read the
Microsoft Knowledge Base article for more information.
Play and Display Wave Data
(28,455 bytes)
This sample project shows you how to play uncompressed sound files and display wave data in a graph.
You can use this project to allow your program to play and display uncompressed sound files.
Download the sample
project or read the
Microsoft Knowledge Base article for more information.
Detect and Use Multiple Sound Cards
(30,836 bytes)
This sample project shows you how to use a specified sound card in a system with several sound cards. Use
this project to enable your program to have multiple sound-card support so you can record with one sound
card and play back the sound file through another sound card.
Download
the sample project or read the
Microsoft Knowledge Base article for more information.
Read Joystick Inputs
(27,399 bytes)
This sample project shows you how to add joystick capabilities to your Visual Basic project. This
sample detects whether a joystick is present, determines the joystick capabilities, and reads the
joystick inputs.
Download the sample
project or read the
Microsoft Knowledge Base article for more information.
Play Audio Compact Discs
(26,720 bytes)
This sample project shows you how to play audio CDs from your program. You can use this project to
send commands to detect an audio CD, determine the number of tracks on the disc, and play any track
or time position on the CD.
Download the sample
project or read the
Microsoft Knowledge Base article for more information.
Control a MIDI Device
(29,039 bytes)
This sample shows you how to send individual MIDI messages to MIDI devices from your program.
You can use this project to determine the number of MIDI output devices in the system, open and close
the MIDI output device, or send a MIDI message.
Download the sample project
or read the
Microsoft Knowledge Base article for more information.
Return to the Visual Basic
Support Resources Home Page.