borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincani
:: How to Play a Wave File in your project

Author  

Anil Gupta

Language  

VB5, VB6

Operating Systems  

Windows 95, 98 and NT
API Declarations

Option Explicit

Public Declare Function sndPlaySound Lib "
winmm.dll" Alias "sndPlaySoundA" _
    (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Usage

Option Explicit

Private Sub Command1_Click()
    sndPlaySound "C:\WINDOWS\MEDIA\Start.wav", &H1
End Sub

:: Navigation

Home

Miscellaneous API Tips

Previous Tip

Next Tip

:: Search this site
Google
:: Related Topics
icon 18-06-2008 Problem in loading swf movie using array by belvita
icon 27-05-2005 Loading resources from dll by ryansanders2002
icon 06-01-2004 Re: Sound in a form by Chris_871
icon 30-09-2003 Re: How to run the .swf in vb6 by vbgen
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder