|
-
May 4th, 1999, 07:59 AM
#1
Sound
I have an application that use Playsound, like this:
PlaySound("21.WAV", NULL, SND_ASYNC | SND_FILENAME);
the sound 21.wav is in the same folder as my application's EXE-file.
Now to my question: Can I import the sound into the project so that
the external soundfile is not needed when I run the program?
-
May 4th, 1999, 08:12 AM
#2
Re: Sound
Within VC++, go to the resource folder and select "Import". Within the file selection dialog that comes up you can specify wave files.
-
May 4th, 1999, 09:00 AM
#3
Re: Sound
I know that part but...
PlaySound("21.WAV", NULL, SND_ASYNC | SND_FILENAME);
does not work. I think that the second parameter should not be NULL
How do I Use PlaySound correct?
-
May 4th, 1999, 09:06 AM
#4
Re: Sound
I haven't tried it, but according to the documentation, it should look like:
PlaySound("SoundResource", AfxGetResourceHandle(), SND_RESOURCE | SND_ASYNC);
Michael...
[email protected]
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
|