Hello
Can you check my code I canīt find out what is wrong with it..
There is supposed to be an error on the highlighted line. At least my compiler asserts itCode:LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hDC; PAINTSTRUCT ps; HBRUSH hGreenBrush; RECT hRect; switch(message) { case WM_PAINT: hGreenBrush = CreateSolidBrush(RGB(0,255,0)); hDC = BeginPaint(hWnd, &ps); &hRect = Rectangle(hDC, 10,10,500,200); FillRect(hDC, &hRect, hGreenBrush); EndPaint(hWnd, &ps); return 0; case WM_DESTROY: PostQuitMessage(0); return 0; } return DefWindowProc(hWnd, message, wParam, lParam); }
Dev-c++
Thx for helping me



LinkBack URL
About LinkBacks



