Here is the code I've been using to play sounds:
In a module:
Public SoundOption As Boolean
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
To play it:
Call sndPlaySound(App.Path + "\Player1.wav", SND_SYNC)
It works fine when running in VB and when I just make the executable. But as soon as I package and install, I get no sound. I've tried packaging it so it installs all the sound files and still nothing.
What am I missing?
Michael
In a module:
Public SoundOption As Boolean
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
To play it:
Call sndPlaySound(App.Path + "\Player1.wav", SND_SYNC)
It works fine when running in VB and when I just make the executable. But as soon as I package and install, I get no sound. I've tried packaging it so it installs all the sound files and still nothing.
What am I missing?
Michael