Connecting Tech Pros Worldwide Help | Site Map

Play WAV in VB6 Help

  #1  
Old August 18th, 2008, 09:15 PM
Hugh Haggerty
Guest
 
Posts: n/a
Does anyone have the Code and Declarations necessary to play
WAV Files in VB6? This must be done without the Windows Media
Player Console becoming visible.

A shell function used to work, but it does not work any more.


Any help greatly appreciated.
Hugh Haggerty
h.a.haggerty@earthlink.net


  #2  
Old August 19th, 2008, 09:15 AM
Dean Earley
Guest
 
Posts: n/a

re: Play WAV in VB6 Help


Hugh Haggerty wrote:
Quote:
Does anyone have the Code and Declarations necessary to play
WAV Files in VB6? This must be done without the Windows Media
Player Console becoming visible.
>
A shell function used to work, but it does not work any more.
PlaySound()

Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA"
(ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long)
As Long

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple sound effects in VB6 mrnn answers 4 October 22nd, 2007 01:19 AM
Very, very, very new user needs help. Jack Sadie answers 10 December 31st, 2005 10:45 AM
How to play sound in .net? CM answers 12 November 20th, 2005 05:40 PM
How to play sound in .net? CM answers 10 November 20th, 2005 04:47 PM