did work.. i got this error now:
Code:
Cpp1.cpp
C:\Windows\Desktop\programin\prog2\Cpp1.cpp(46) : error C2440: 'type cast' : cannot convert from 'void *' to 'struct tagWNDCLASSA'
        No constructor could take the source type, or constructor overload resolution was ambiguous
Error executing cl.exe.
and just to make sure.. my code is now:
Code:
	wndClass.style		 = 0;
	wndClass.lpfnWndProc             = WindowProc;
	wndClass.cbClsExtra	 = 0;
	wndClass.cbWndExtra              = 0;
	wndClass.hInstance	 = hInstance;
	wndClass.hIcon		 = LoadIcon(NULL,IDI_APPLICATION);
	wndClass.hCursor	                 = LoadCursor(NULL, IDC_ARROW);
    wndClass.hbrBackground = (WNDCLASS) GetStockObject(WHITE_BRUSH);  	//<--Right HERE 
	wndClass.lpszMenuName  = NULL;
	wndClass.lpszClassName = szAppName;