Simple message problem...
I've been reading a book about how computer games are made, and I came across the "PeekMessage" command for windows programming, and the book said to write it as below, but my compiler (Dev-C++, if that helps) wont accept it when I try use it to process input and logic etc, so, is it a problem with the code, or is it something else???
// test if this is a quit
if (msg.message == WM_QUIT)
// translate any accelerator keys
// send the message to the window proc
} // end if
// main game processing goes here