|COMPONENT home | Rod Page|
Until January 2001, COMPONENT 2.0 was distributed by the Natural History Museum in London, where I worked when I wrote the program in 1991-1993. COMPONENT 2.0 is now available for free. The documentation is online as PDF files, and the source code is also available.
The source code for COMPONENT 2.0 is available under the GNU General Public Licence. The code is being released in the hope that it may be of interest to those interested in programming phylogenetic methods. Although the compiler used is now obsolete (see below), the code is reasonably well documented and so should be understandable. Although many of the methods or graphic capabilities have been superceeded by more recent programs (such as GeneTree, TreeMap, and TreeView), there are a number of algorithms in COMPONENT that have not, to my knowledge, been implemented anywhere else.
The souce code for COMPONENT is written in Turbo Pascal, and requires Borland's Turbo Pascal for Windows version 1.5. At present Borland are no longer distributing this compiler as Turbo Pascal has been superceeded by Delphi. The user interface to COMPONENT depends heavily on Turbo Pascal specific features and class libraries.
Turbo Pascal is a wonderful compiler, but has little or no project management. Because of the size of COMPONENT, and the need for various DLLs, building COMPONENT is a little complicated. I've tried to simplify the process using a makefile.
Open a command prompt and in the root of the source code directory type
make all make install
This will compile the custom control DLLs and the installer program (not really needed but included for completeness).
Step 2 builds the executable CPW3.EXE but we still need to add the resources (because of the size of the program Turbo Pascal can't do this automatically).
The file CPW3.EXE now has the menu, bitmap, dialog and icon resources and can be executed.
Documentation (PDF files)
Joe Slowinski's review in Cladistics
COMPONENT Lite (Macintosh version)
COMPONENT 1.5 (DOS version)