How would i make it so in my program there is a button when that button is clicked i want it to play a .wma file without opening and media player?
KDE's Phonon is a cross-platform(!) C++ multimedia library. It supports native sound systems as backends. Worth a look if you haven't seen it before, and a simple video player can be written in a mere 83 lines of code.