vb中 Declare 调用dll 如何使用
PublicDeclareFunctionBeepLib"kernel32"Alias"Beep"(ByValdwFreqAsLong,ByValdwDurationAs...
Public Declare Function Beep Lib "kernel32" Alias "Beep" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
vb声明调用了 可是如何使用呢? 展开
vb声明调用了 可是如何使用呢? 展开
1个回答
展开全部
Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Private Sub Form_Activate()
Dim Cnt As Long
For Cnt = 0 To 5000 Step 10
'play a tone of 'Cnt' hertz, for 50 milliseconds
Beep Cnt, 50
Me.Caption = Cnt
DoEvents
Next Cnt
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询