Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
This code shows how to play a wave file using the ...
Author:
Peter Riley
E-mail:
Click to e-mail author
Submitted:
5/17/2000
Version:
VB5
Compatibility:
VB5, VB6
Category:
Multimedia
Views:
12992
This code shows how to play a wave file using the PlaySound API function.
Declarations:
Option Explicit Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Code:
Private Sub Form_Load() Dim lRet As Long lRet = PlaySound("C:\MyWavFile.wav", 0&, 0&) End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2023 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement