Anyone know how to include sounds in an exe, you know, so you don't have to package it with a load of wav's or whatever...
Printable View
Anyone know how to include sounds in an exe, you know, so you don't have to package it with a load of wav's or whatever...
Open the WAV file with a hex-editor, and copy the contents to a RES file, insert it to your project. When you need to play the file, extract it from the RES file to a temporary file (you can use the APIs to find out an unoccupied temporary file name). Play the temporary file with the PlaySound or sndPlaySound APIs, and delete it when you finish playing...
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69