coox
Nov 18th, 1999, 04:32 PM
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...
Yonatan
Nov 18th, 1999, 06:25 PM
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: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
AIM: RYoni69