|
-
Nov 18th, 1999, 05:32 PM
#1
Thread Starter
Fanatic Member
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...
-
Nov 18th, 1999, 07:25 PM
#2
Guru
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|