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?
For Windows, in all honesty your best bet is DirectShow. The RenderFile API allows you to play most audio file types with just a few lines of code.
The best part about DirectShow is that it's a part of the Windows platform so you don't need to bundle an external component.