Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: MrUnAnimouSPosted on 2003-02-05 at 05:23:09ID: 7882371
Hi,
This piece of code works for me:
'Define this in a module
Public Declare Function SndPlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long
' Then attach this to, for example, a button
Dim Variable As Long
Dim lFlags As Long
lFlags = SND_ASYNC Or SND_NODEFAULT Or SND_FILENAME
Variable = SndPlaySound("", 0, lFlags)
Cya,
Mr.UnAnimouS