
ChartFolio/ZAF Windows Installation

This file provides information for installing the ChartFolio
libraries and demos under Windows.  It presumes that ZAF 5.1 has 
already been installed, and uses many of the conventions used for 
building ZAF.


----------------------------------------------------------------------
1.  Environment Variables

	The ChartFolio installation uses zmake, the Zinc utility used
to build the ZAF 5.1 libraries.  As with building Zinc, ChartFolio
requires that some environment variables be set up:

	PATH                    system path
	ZAF_ROOT                Root of ZAF installation
	ZINC_COMPILER           name of compiler to be used
	LIB                     Library file path
	CF_ZAF                  Root of ChartFolio installation
	INCLUDE                 Include file path

	
	The first four variables (PATH, ZAF_ROOT, ZINC_COMPILER, and LIB)
should have the same values used when installing ZAF -- no additions 
are necessary.

	The CF_ZAF environment variable must be set to the root directory
of ChartFolio.  Usually, this directory is beneath the ZAF directory,
in %ZAF_ROOT%\cf_zaf.  Thus, if ZAF has been installed in c:\zaf,
then CF_ZAF should be set as follows:


		set CF_ZAF=c:\zaf\cf_zaf


	The INCLUDE environment variable must be modified to include
ChartFolio's include path, as well as any existing paths such as
ZAF's path and the compiler's include path.  Example (assuming 
ZINC_COMPILER=borland):


		set INCLUDE=c:\zaf\cf_zaf\include;c:\zaf\include;c:\bc5\include


----------------------------------------------------------------------

2. Building The Library

	Once the environment has been set, go to the ChartFolio source
	directory and make the library:


		cd c:\zaf\cf_zaf\src
		zmake win16 (or zmake win32)


	The library (cfzw16.lib or cfzw32.lib) will be placed in the same 
directory where ZAF's libraries are located.


----------------------------------------------------------------------

3. Building The Demo Programs

	Demo programs are found in the demo directory under CF_ZAF.
A demo is built as follows:


		cd c:\zaf\cf_zaf\demo\cfz_4cht
		zmake win16 (or zmake win32)


	Currently there are three demo subdirectories: basic_2d (builds
seven applications, each displaying a different chart), cfz_4cht 
(builds an application that displays four charts in a single window),
and cfz_attr (builds an application patterned after ZAF's attrtest).

