I have the following declaration on a module.
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
I have the following call on a form. Card.wav is in the same directory as the executable.
PlaySound("card.wav", 0, 0)
On my machine, and on other non-development machines, I can here the wav file fine. But on a few machines, I am unable to hear it. Is there another way to play a wav file, or does anyone have a solution to this. The wav file will play fine in Windows Media Player outside of the VB program.