I am writing a windows form program and I want to add some sound to it like when you click something or a timer click accurs. What command should I use to create the sound?
I am writing a windows form program and I want to add some sound to it like when you click something or a timer click accurs. What command should I use to create the sound?
I program using Visual Studio Professional 2008. I have little experience, I'm self taught. I started basic C in early March 2008 with a 1987 compiler and C++ this October with Visual Studio. I normally program in Visual C++ creating form programs. My current project is a simple game where I hide a dot and you have to find it in different random sinerios.
My Catchphrase:
DOS wasn't written in a day...
PlaySound, perhaps?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Look into the waveOutXxx functions. They actually very easy to use once you figure them out.
PM if you want a working example, as I don't have the file on this computer.
I forget to tell you. Im programing in c++ and I want to use a wave sound. I havnt had time to try anything but Thanks for the help.
I program using Visual Studio Professional 2008. I have little experience, I'm self taught. I started basic C in early March 2008 with a 1987 compiler and C++ this October with Visual Studio. I normally program in Visual C++ creating form programs. My current project is a simple game where I hide a dot and you have to find it in different random sinerios.
My Catchphrase:
DOS wasn't written in a day...
I'm quite convinced that PlaySound is the easiest to use, and will do .WAV files.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.