Wrox Programmer Forums
|
User Groups - Other Developer User Groups Post your announcements about user groups for developer audiences other than INETA and LUGs
Welcome to the p2p.wrox.com Forums.

You are currently viewing the User Groups - Other Developer User Groups section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 27th, 2009, 12:32 AM
Registered User
 
Join Date: Sep 2009
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Question How do you get Visual Basic 4 to play .wav files

I have Visual Basic 4 and Visual Basic 2005
Self taught coder for over 21 years. But now I've currently using the two below but really like VB 4 best because of the way is does it's compile compared to the vb2005,
But I have not figured out how to get sound flies to execute in VB4, it's easy in 2005. But the Compile is very lame; my O.S. is XP can someone Please?Assist me in learning how to get sound files or .wav files to work using vb4?

Thanks in advance for any help you may give.
  #2 (permalink)  
Old February 9th, 2010, 05:31 AM
Registered User
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can play a sound file from Microsoft Visual Basic for Windows by calling the sndPlaySound API function from the Mmsystem.dll file. In order to be able to call the sndPlaySound API function, you must be using either Microsoft Windows, version 3.1 or the Microsoft Multimedia Extensions for Windows, version 3.0. The following information discusses the sndPlaySound parameters, and includes an example of how to use this function from Visual Basic for Windows.
  #3 (permalink)  
Old February 15th, 2010, 03:32 PM
Registered User
 
Join Date: Sep 2009
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks nevaeh.aaric
I've got it up and running now with help from others as yourself, thanks again for your input.





Similar Threads
Thread Thread Starter Forum Replies Last Post
directsound to play wav file on clint brouser arafat.eajaz C# 5 April 27th, 2008 04:25 AM
Play .wav file mvenkatesan C# 2005 3 October 22nd, 2007 07:28 AM
wav file play mvenkatesan C# 2005 1 October 17th, 2007 04:01 AM
How do I play a .wav file from Resources? furjaw Visual Basic 2005 Basics 0 May 27th, 2006 11:07 PM
How do i play midi or wav files in VB.Net? aldwincusi VB How-To 3 April 11th, 2005 03:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.