1 Replies - 1551 Views - Last Post: 02 February 2010 - 01:19 PM Rate Topic: -----

#1 shaunarman  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 58
  • Joined: 21-January 10

Playing .wav file when button clicked VisualC++

Posted 02 February 2010 - 01:13 PM

Ok I want to have a small .wav file play when the user clicks on a set button. I have been trying to fing out how to do this, but everything that I fing is beyond my level of understanding, or tells me I need to download this or that. Is there a "easy" way to make this happen? this is a rather simple file, just a cash register sound that I would like to have played. If needed I can place my code in here, but I didn't think that that would be needed.

Is This A Good Question/Topic? 0
  • +

Replies To: Playing .wav file when button clicked VisualC++

#2 Martyn.Rae  Icon User is offline

  • The programming dinosaur
  • member icon

Reputation: 538
  • View blog
  • Posts: 1,406
  • Joined: 22-August 09

Re: Playing .wav file when button clicked VisualC++

Posted 02 February 2010 - 01:19 PM

If you are using Microsoft windows you could try using mciSendCommand. Details can be found here

Hope that helps.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1