Below is a copy of my yahoo answers post. You can watch the video to see most of the code.
Btw, I'm happy to be here, and I hope you can help me with this problem I'm having
Thanks in advance, tarik00555.

System:

Windows 7 64bit
2 GB ram
GeForce 8400 gs
AMD Athlon 64 X2 Dual Core 6000+ 3.10 GHz
(maybe it's needed idk)

Well, I was bored and put random stuff in youtube, and eventually I put "make a game C++".
So this great tutorial series comes up and I decide to follow it as I have some experience in C++.
The first thing that anoyed me is that at one point I put in that if you click R the window will go red.
It didn't work, as soon as I closed the program one brief second it would go red and shut down.
I deleted that part of the code as it wasn't important anyway. But this annoys me. I show and highlight a part of code wich should draw a diagonal from 0, 0 to 800, 600. And you can see in the video that the screen is white. And the screen shouldn't be all white in the first place(I think it should be some greyish).

So thank you if you read all of this.

Here's the link to the video:
http://www.youtube.com/watch?v=wL3vG...ature=youtu.be