Max Veteran Posted October 16, 2004 Veteran Share Posted October 16, 2004 Basically, all I want is to press a command button in VB6, and a wav/mp3 file plays of my choice. Anyone know how to do this? Thanks. Link to comment Share on other sites More sharing options...
0 jimbo11883 Posted October 16, 2004 Share Posted October 16, 2004 This will only work for wav files. To play mp3/wma/etc, check out a lib like fmod, or use the ActiveMovie control type library. Private Const SND_ASYNC = &H1 Private Const SND_FILENAME = &H20000 Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long sndPlaySound "C:\Windows\Media\Windows XP Default.wav", SND_ASYNC Or SND_FILENAME Link to comment Share on other sites More sharing options...
0 Max Veteran Posted October 16, 2004 Author Veteran Share Posted October 16, 2004 Thanks dude :) Link to comment Share on other sites More sharing options...
Question
Max Veteran
Basically, all I want is to press a command button in VB6, and a wav/mp3 file plays of my choice.
Anyone know how to do this?
Thanks.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts