•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 374,512 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,878 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
This is a visual basic 6.0 wav sound player class that plays any selected sound file in .wav format. It has the filename property to select the file and play property to play the sound file. Visit http://www.mycplus.com for more codes.
Option Explicit Private mfilename As String Private mflags As Long Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Public Property Get filename() As String filename = mfilename End Property Public Property Let filename(ByVal vnewvalue As String) mfilename = vnewvalue End Property Public Property Get flags() As Long flags = mflags End Property Public Property Let flags(ByVal vnewvalue As Long) mflags = vnewvalue End Property Public Sub play() Dim rc As Long rc = sndPlaySound(mfilename, mflags) End Sub
Comments (Newest First)
msaqib | Junior Poster in Training | Dec 25th, 2007
karthik_02 | Newbie Poster | Mar 4th, 2007
•
•
•
•
how to select the file what we want..
where we have to place the code..
where we have to place the code..
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)