Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to play a wav.file in visual basic 4

Status
Not open for further replies.

pierremercier

Programmer
Aug 23, 2001
1
SA
I would like to have the code to play a wav.file regardless of the drive letter of the drive the wav.file is located.

Example: I would like to play a wav.file stored on a CD and play the file if the CD rom drive is either a D drive, E drive or any drive letter
 
In response to the "regardless of the drive letter of the drive the wav.file is located".

You should check out your VB directory for FileCtls (WINSEEK.VBP). You should be able to modify that to suit your needs. Here's part of the Help file's discription:

This sample application allows the user to search a directory for specific files, or files with a particular extension. The sample uses file-system controls such as the File ListBox, Drive ListBox, and Directory ListBox controls. For more information, see Chapter 18, "Using the File-System Controls," in the Programmer's Guide.

Hope this helps.
--MiggyD It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top