Designing
the circuits was easy compared to writing the Windows program that
operates the railroad. I wrote the C++ program with windows API
code, the low level language of Microsoft's MFC. There
are about 3 thousand instructions to choose from and finding the right one
for the job is pretty tough for the amateur
programmer.
The Train.exe
program provides point and click controls for railroad operation.
The main screen is a bitmap picture representing the track layout.
Switch tracks can be switched by moving the cursor over the desired fork
and clicking.
|