If you want to start playing with CIDLib immediately, here is what you
need to do. It is assumed that you have this much done:

1) You must have Visual Age C++ installed and its various environmental
variables set up. It is assumed that the INCLUDE and LIB paths are set
to what the Visual Age installation set them to. You can have other stuff
in these paths, but don't put the CIDLib directories in them because
the build shell will do this for you.

Make SURE that they end with semicolons because the environmental setup
file will append to them.!!!

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

1) First install CIDLib. Change to the root directory of the desired
drive and explode the CIDLib Zip file (which will be named either
CIDLib.Zip or R0_400.Zip according to where you downloaded it from.
Explode it so that it recreates subdirectories (the default on most
unzippers.) Just in case, you might want to a 'listing' type unzip
to make sure that your unzipper is doing what you want. It should be
exploding everything into subdirectories under the \CID_Dev directory.

2) Set the _CIDDEVDR environment variable to the drive that you just
installed into. You can either set it in Config.Sys or just modify the
CIDEnv.Cmd file to set it. The CIDEnv.Cmd file will use this drive to
set up all of the environment variables to work on this drive. If you
set it in the CIDEnv.Cmd file, be sure to set it first because almost
everything else in there uses it.

3) Run the CIDEnv.Cmd file. This is a REXX file that will set up the
environment for the command window that you are in. It sets up a
handful of environment variables that are used by the build shell,
discussed next.

4) Run the build shell, named CIDBuild.Exe, which should now be in your
path since you ran the environmental setup file. It will load up and
present a prompt. The build shell uses a project file to describe the
development environment and to describe all of the projects. If you want
to look at the one that comes with CIDLib for playing with the demos it
is \CID_Dev\CIDLib.Project. Its pretty well documented and the online
HTML help describes it. It acts pretty much like the command line and
supports command editing and recall. It just provides enhanced
functionality specific to building the CIDLib system.

The Zip file has prebuilt versions of the very basic utilities that are
already in the Result sub-directory. However you can also build them since
the source code is installed. You have to first build the CIDBuild.Exe
program, which is a raw OS/2 and C++ program. It has a Cmp.Cmd file in
its directory \CID_Dev\Source\CIDBuild that builds it. Once its built,
you run it and build everything else from with it.

5) Type ? to see the build shell commands. Type xxx ? to see the possible
syntax options for a particular command, where xxx is the command name.

6) Now lets build the system. The build shell uses 'build files' which
are just lists of projects to build in bulk. There is one that will
build all of the projects, and its named AllFacs.Build. All of the build
files are in \CID_Dev\Source\Build, and are found by the shell via the
'BuildPath' setting, which is set in the project file.

So, just type:

    make @AllFacs

This will build the entire system, if you have your system set up
correctly. You are likely to get a couple of errors during your first
build because I had to make about 5 changes to the PM headers to make
them more correct. In many to most cases, the PM headers do not correctly
apply the 'const' attribute to const parameters. So I changed them to
be correct in order to avoid the informational errors that would be
caused otherwise (because of the need to cast const stuff to non-const.)
Sorry about the trouble, but it will not cause anything else to fail
and in fact will make them safer and more correct. Most of them will
change a 'PPOINTL' to a 'const POINTL*' or a 'PRECT' to a 'const RECT*'
because those parameters are really constant. Just find the API in
PMGpi.H or PMWin.H and edit it. There are just a few of them, so don't
freak out :-)

7) Try some of the demo programs. They are described in the online
HTML documentation. The ray tracer demos are particularly neat. All of
the demos that output raster graphics will create a '.Dis' format, which
is a simple 24 bit format. The DispRGB.Exe utility will display these
files.

8) At this time you should probably go to the \CID_Dev\Source\Document\Html
directory and open the Index.Html file in your Web browser. Its the
starting point for the online docs. They are not complete by any means,
but are better than they've been so far.


That should do it. If this did not work, go back over the steps again and
make sure that your PATHs got set up correctly. In particular make sure
that they were ended with a semicolon, otherwise the CIDEnv.Cmd file will
create bad paths when it appends to them. If you still cannot get it to
work, contact me at one of the places mentioned in the CIDLib.Txt file,
which is in the \CID_Dev\Source\Document\Html\ReadMe subdirectory, and is
viewable via my homepage at HTTP://ng.netgate.net.

Thanks for checking out CIDLib and let me know your thoughts and feedback.
The next version will, sadly I guess, be on NT. I'm already well into
the port, and it will probably be about a couple months and will basically
be this version just ported. It will be for use in the VC++ environment.
