Go to your Start menu, select "Run...", and type "dxdiag". This will pull up the DirectX Diagnostic window. Towards the bottom of the window is where your DirectX version is displayed.

If it isn't 9.0, You are going to have issues.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}