I have a question

Please do not recommend any type of shortcut, I just want to tell my computer completely through my code, and my code only, with no use of OpenGL, etc. I was wondering how I would check if a certain key was pressed, and if so make the computer play a music file in my music folder within my MyDocuments folder?
http://msdn.microsoft.com/en-us/library/ms646293%28v=vs.85%29.aspx
For registering keypresses

http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx
For opening sound file with standart player.
Or you can get book on sound processing and file formats and write player yourself
Will this work for dev bloodshed C++ compilers? I know it's old and ugly, but I seem to favor it for some odd reason.
This function is in winAPI library, which is needed to communicate with operating system. If MinGW your IDE using is up to date, everything should work.
Okay, thank-you so much!
Topic archived. No new replies allowed.