Looking for a nice free stable C/C++ platform to do some simple windows programming
Posted on 2004-09-10
Hi. I am trying to write a program that displays a small white square (8x8 pixels) on a black screen that is moving (using graphics), also the keyboard modifies the direction/acceleration of the square. My problems are:
(1) I don't have C/C++ installed on my PC (I don't really know where to get a good free compiler)
(2) I'm not clear on how graphics work in C (will it be platform independent?)
(3) I can use the keyboard, but I need to detect every 10ms what the state of two keys are (up or down) to recalculate the cursor position, so its not detecting simple keypresses, etc. I need to scan the key state every 10ms.
I know some of this stuff is easy, and I am familiar with C/C++, just haven't done it in a few years. I'll even set this as a 150-point question just so that you're not wasting your time.
Any help would be welcome. Thanks.