winapi - PlaySound() In C++ Doesn't Work -
i've been trying figure out, , can't seem to.
when include window.h @ top, there supposed playsound() function inside of it.
i added window.h keep on getting "playsound not declared in scope" error.
i tried going project's build options , adding "-lwinmm" linker settings, still doesn't work.
i'm using code::blocks.
anyone have solution?
you need #include both windows.h , mmsystem.h, in order. noted in community section of the documentation.
Comments
Post a Comment