Graphics will not write

Hello to all. I'm new here. I'm just asking why the graphics stopped after a very long loop . I'm using visual c++.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 void initgraph(void)
{
	mov = 0;
	movx = 0;
	HWND hWnd = GetForegroundWindow();
	RECT    pRECT = { 0 };
	COORD   POS1 = { 0 };
	COORD   BGN1 = setCordScale(POS1, pRECT);
	GetWindowRect(hWnd, &pRECT);
	hDC = GetWindowDC(hWnd);
	PEN = getPen(PS_SOLID, 2, RGB(0, 0, 0));
	StdOut = GetStdHandle(STD_OUTPUT_HANDLE);
}
Topic archived. No new replies allowed.