Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    East Tennessee
    Posts
    179
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Run a WAV File (VB 4)

    I am a beginner who is dabbling with VB.
    I want to help a friend who is doing sound effects for a play. Since I can generate the sounds from the Windows Run box by entering the file name (1.wav) I thought I could get VB to choose the file and run it using the sub;

    Private Sub Command1_Click()
    Shell ("c:1.wav")
    End Sub

    However I get an Error #5 "Invalid procedure call"

    Can any one guide me?
    Win 8, Firefox 16.0.2, Thunderbird 15.0.2

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Run a WAV File (VB 4)

    Have a look at this post. It shows how to use the PlaySound API call and the MultiMedia control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •