|
-
Mar 22nd, 2000, 05:45 PM
#1
Thread Starter
Lively Member
Is there a way in VB to determine
if there's a sound card or not?
thanx in advance!!!!
-
Mar 22nd, 2000, 06:10 PM
#2
Junior Member
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
-
Mar 23rd, 2000, 09:14 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|