❓ <mmsystem.h> Sounds
Hello! First of all sorry for my bad English.
My problem is that sounds aren't playing in Release mode. But they are in Debug mode.
I have linked winmm.lib @ linker/Input/Additional-Dependencies
Project builds and works well.
Thanks!
My problem is that sounds aren't playing in Release mode. But they are in Debug mode.
I have linked winmm.lib @ linker/Input/Additional-Dependencies
Code:
...
#include <mmsystem.h>
int main()
{
PlaySound(TEXT("start.wav"), NULL, SND_ASYNC);
...
}
Code:
------ Build started: Project: joeware, Configuration: Release Win32 ------ 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(387,5): warning MSB8028: The intermediate directory (Release\) contains files shared from another project (joeware.vcxproj). This can lead to incorrect clean and rebuild behavior. 1>Generating code 1>All 141 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. 1>Finished generating code 1>joeware.vcxproj -> J:\joeware\Release\joeware.exe 1>Done building project "joeware.vcxproj". ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Thanks!

