Is there a way in VB to determine
if there's a sound card or not?
thanx in advance!!!! :)
Printable View
Is there a way in VB to determine
if there's a sound card or not?
thanx in advance!!!! :)
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
i think it's exactly what i need!!!!!
thanx a lot!!!!!!!
:):):)