 **********************************************************************
 * DISCLAIMER OF WARRANTIES:                                          *
 *                                                                    *
 * The following enclosed code is sample code created by IBM          *
 * Corporation.  This sample code is not part of any standard IBM     *
 * product and is provided to you solely for the purpose of assisting *
 * you in the development of your applications.  The code is provided *
 * "AS IS", without warranty of any kind.  IBM shall not be liable    *
 * for any damages arising out of your use of the sample code, even   *
 * if they have been advised of the possibility of such damages       *
 *                                                                    *
 **********************************************************************

 NAME: SAMPLE05 - Process Registration Subsystem DLL

 DESCRIPTION:
     The DLL keeps a global count of the number of processes that
     access it, running totals for each process that accesses the
     subsystem, and a grand total for all processes.  There are two
     external entry points for programs accessing the subsystem.  The
     first is "DLLINCREMENT", which increments both the grand total
     and the total for the calling process by the amount passed in.
     The second entry point is "DLLSTATS", which prints out statistics
     kept by the subsystem, including the grand total and the total
     for the current process.

     The grand total and the total for the process are stored in a
     single shared data segment of the subsystem.  Each process total
     is stored in its own data segment.

 TASK:
     Creating a simple subsystem DLL.

 FEATURE/CONCEPT:
     Example of a subsystem _DLL_InitTerm function.

  HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
       Simple type the name of the .exe file, that is:

            MAIN05


 HOW TO BUILD THE SAMPLE PROJECT YOURSELF FROM THE COMMAND LINE:
       - To build the DLL first:
         From \sample05\dll directory

            nmake

       - To build the main program
         From the \sample05  directory

            nmake

  ADDITIONAL INFORMATION
  For additional information on this and other samples shipped
  with the VisualAge for C++ product, please see the Guide to Samples
  notebook.

  To access the notebook from Program Manager, open the
  VisualAge for C++ product object, then open the Guide to Samples
  notebook.

