星光公益联盟:在VB中如何添加背景音乐?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/11 03:42:49

Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Private Sub Form_Load()
Call sndPlaySound("c:\test.wav", 1)
End Sub