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.
M
Marty
@Marty
Posts
-
wave files -
BOOL, TRUE, FALSE vs. bool, true, falseWhen is it appropriate to use the "special" data types defined in the Windows header files such as BOOL, TRUE, and FALSE, & when is it appropriate to use the standard C++ types like bool, true and false? I am programming in MFC, but I see both in code. Anyone who can help end some of this confusion would be appreciated. I understand types like CString, and COLORREF add functionality, but does it matter which one you use with the others I mentioned?