Simcoder Posted April 26, 2003 Posted April 26, 2003 I'm new to VB and I would just like to know how I would hardcode a wav file to the executable. I plan on distrubuting a file but I don't to have to send the sound files in a seperate folder to my clients. I would like it if I could just "save" the file into the executable or something like that, sorta like a bitmap or something, they are always included with the program executable itself. I'm new, anyhelp would be appreciated, just explain it as simple as possible. Thanx =D Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
aewarnick Posted April 26, 2003 Posted April 26, 2003 If you have Visual Studio you can open the Solution Explorer and then right click on the second icon down which should be your class name then choose Add, existing item. Choose your wav file then go down to your file and click on it once. You should see it's properties. If not right click and choose, Properties. For build action choose embedded recource. I am not sure if that is what you want to do but the wave file will be in your program. I am not sure, but I think to play it in your program you would have to save it to the hard drive if you do it the way I mentioned above. I was just thinking about how play music in my programs, so if anyone else posts an answer, I would like to hear it. Quote C#
Slurpee Posted April 28, 2003 Posted April 28, 2003 http://www.eggheadcafe.com/articles/20030302.asp:D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.