判断系统是否支持声音 Option Explicit Declare Function waveOutGetNumDevs Lib "winmm.dll" () As Long Sub ChkSndIsSupport() Dim intRtn As Integer intRtn= waveOutGetNumDevs() If intRtn> 0 Then MsgBox "支持声音" Else MsgBox "不支持声音" End If End Sub |
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |