+ 1
PlaySound() function doesn't work
Hello, I work with visual studio 2019 in c++. I'm trying to play a sound using PlaySound() function, but I get an error. I included mmsystem.h library, and windows.h library to my file and added winmm.lib to Linker->Input->Addtional Dependencies, but I can't conpile the code because of this error : "unresolved external symbol __imp__PlaySoundW@12 referenced in function _main". For a long time I've been trying to figure this out without success. Can anyone please help me solve this problem?
1 Réponse
+ 1
Use Qt, qt-multimedia. It's cross-platform and easy to use.