Hi all.

I've been experimenting with DirectX and Win32 quite recently (haven't even started getting into rendering 3D with it yet), and already I have a problem. I can't seem to figure out why, but every time I start my program (it just displays the standard blue background on a 640x480 window), my CPU usage skyrockets to 100%. And, when I close the window, the process doesn't end. I'm guessing the CPU usage thing is a common problem, as I've seen other DirectX programs that do the same thing (not 3DGS, of course, wink).

EDIT: In case anyone is interested, I'm working from this DirectX Tutorial: DirectXTutorial.com

Last edited by MrCode; 09/01/08 18:33. Reason: Added tutorial link

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