Skip to main content

AccessTr.neT


wav Sound modul 32 bit

wav Sound modul 32 bit

#5
Alttaki kodu modüle kaydedince 32 bit ve 64 bitte sorunsuz olarak çalıştı.

Option Compare Database



#If VBA7 Then

Declare PtrSafe Function apisndPlaySound Lib "winmm" Alias "sndPlaySoundA" _
    (ByVal filename As String, ByVal snd_async As Long) As Long

#Else

Declare Function apisndPlaySound Lib "winmm" Alias "sndPlaySoundA" _
    (ByVal filename As String, ByVal snd_async As Long) As Long

#End If
  Function PlaySound(sWavFile As String)
    ' Purpose:  Plays a sound.
    ' Argument: the full path and file name.

    If apisndPlaySound(sWavFile, 1) = 0 Then
        MsgBox "The Sound Did Not Play!"
    End If
  End Function

Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
wav Sound modul 32 bit - Yazar: macyrz - 04/04/2016, 16:05
Cvp: wav Sound modul 32 bit - Yazar: atoz112 - 04/04/2016, 16:12
Cvp: wav Sound modul 32 bit - Yazar: macyrz - 05/04/2016, 19:58
Cvp: wav Sound modul 32 bit - Yazar: atoz112 - 05/04/2016, 20:39
Cvp: wav Sound modul 32 bit - Yazar: ozanakkaya - 05/04/2016, 21:08
Cvp: wav Sound modul 32 bit - Yazar: macyrz - 06/04/2016, 09:13