Playing sound from a file

  • Thread starter Thread starter Guest
  • Start date Start date
Maybe declare...
Private Declare Auto Function PlaySound Lib "winmm.dll" (ByVal
ByVallpszSoundName As _

String, ByVal hModule As Integer, ByVal dwFlags As Integer) As Integer

then call...
On Error Resume Next

Dim fileName As String = String.Concat("N:\ODRC04Data\Sounds\tada.wav")

Const SND_FILENAME As Integer = &H20000

PlaySound(fileName, 0, SND_FILENAME)

Graeme
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top