did work.. i got this error now:
and just to make sure.. my code is 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.
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;




Reply With Quote