Original Post
Ok here is my code:
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
// Handle a few of the msg''s that window sends to our program
switch(msg)
{
case WM_ACTIVATE: // Handle window creation
{
if(!HIWORD(wParam))
{
OGL_Window.active = true;
} else
{
OGL_Window.active = false;
}
return 0;
break;
}
case WM_CLOSE: // Handle when the window is closed
{
PostQuitMessage(0); // Tell windows that we want it to exit
return 0; // Quit
}
case WM_SIZE: // Handle the painting to the window(resizing etc...)
{
OGL_Window.ResizeGLScene(LOWORD(lParam), HIWORD(lParam));
}
case WM_KEYDOWN:
{
OGL_Window.keys[wParam] = true;
return 0;
}
case WM_KEYUP:
{
OGL_Window.keys[wParam] = false;
return 0;
}
default:
{
break;
}
} // end switch
return DefWindowProc(hwnd, msg, wParam, lParam);
}
now, I get 10 of these syntax error : missing '';'' before ''.'' and the arrow points to OGL_Window.keys[wParam] = false; for example and all of the other ones... what does that mean i cant see it