What an EzWindows timer-based program looks like - astronomical simulation
Download a program This is an astronomical simulation that should compile
completely if you make sure the Makefile is correct for where you put the files. The entire set of code is
provided. This is a simulation of our solar system, given that they all start in a line. Notice how short
ApiMain is. All the real work is done in the timer function - and the CelestialBody functions that are
called from the timer function.
To extract the source code (and Makefile) from this file, enter 'gtar xvzf ezwinsample.tgz' from your
Unix account in the directory where you have downloaded the file. You should see a Makefile and the source
code files. You may have to modify the Makefile for your environment, so it compiles fine. Once this is set,
you should be able to compile and run the code.