wave files
-
I have an app where I have decided to use a wave file. I call the wave with... sndPlaySound("WaveName.wav", SND_SYNC); I have included the Windows Multimedia Component in StaAfx.h... #include MMSystem.h #pragma comment(lib, "winmm.lib") Problem: Release build! The release Build only finds the wav file if it is in the same folder. What I would like to do is make the wave a part of the app just like any other resource, instead of a separate file. I have experimented with the .rc and .rc2 files to no avail. I know it can be done (for example the SpeakN sample app in VC++6.0). Perhaps I'm going about it the wrong way. Any help or suggestions would be appreciated.
-
I have an app where I have decided to use a wave file. I call the wave with... sndPlaySound("WaveName.wav", SND_SYNC); I have included the Windows Multimedia Component in StaAfx.h... #include MMSystem.h #pragma comment(lib, "winmm.lib") Problem: Release build! The release Build only finds the wav file if it is in the same folder. What I would like to do is make the wave a part of the app just like any other resource, instead of a separate file. I have experimented with the .rc and .rc2 files to no avail. I know it can be done (for example the SpeakN sample app in VC++6.0). Perhaps I'm going about it the wrong way. Any help or suggestions would be appreciated.