Dear all,
I am very new to C++ with MFC Programming.
I am doing a school project which is to build a .WAV player using C++ with MFC. I must use the lower level API BUT CANNOT simply a call to "PlaySound(_T("filename.wav"), NULL, SND_FILENAME | SND_ASYNC);" to play the .WAV file.
The "play" function is already implemented, however, I don't konw how to implement the "stop" function, as when I press the "play" button (which trigger the "play" function), the "play" function LOCKs all other buttons, I cannot press the "stop" button to stop the music playing.
Are there any hints for me to implement such a "stop" function? Is it something related to "asynchronous", "multi-threading" or something else?
THANKS IN ADVANCE for any valuable reply.