Results 1 to 3 of 3

Thread: Sound Card

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Posts
    120
    Is there a way in VB to determine
    if there's a sound card or not?
    thanx in advance!!!!

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Location
    England
    Posts
    26
    This code will check to see if you can play Wav files, this may / may not be of use to you ?

    Option Explicit
    Private Declare Function waveOutGetNumDevs Lib "winmm" () As Long

    Private Sub Form_Load()
    Dim s As Long

    s = waveOutGetNumDevs()

    If s > 0 Then ' There is at least one device.
    MsgBox "Can Play"
    Else
    MsgBox "Cannot Play"
    End If
    End Sub


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Posts
    120
    i think it's exactly what i need!!!!!
    thanx a lot!!!!!!!


Posting Permissions

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



Click Here to Expand Forum to Full Width