home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / sample05 / readme.txt < prev    next >
Encoding:
Text File  |  1996-02-20  |  2.5 KB  |  63 lines

  1.  **********************************************************************
  2.  * DISCLAIMER OF WARRANTIES:                                          *
  3.  *                                                                    *
  4.  * The following enclosed code is sample code created by IBM          *
  5.  * Corporation.  This sample code is not part of any standard IBM     *
  6.  * product and is provided to you solely for the purpose of assisting *
  7.  * you in the development of your applications.  The code is provided *
  8.  * "AS IS", without warranty of any kind.  IBM shall not be liable    *
  9.  * for any damages arising out of your use of the sample code, even   *
  10.  * if they have been advised of the possibility of such damages       *
  11.  *                                                                    *
  12.  **********************************************************************
  13.  
  14.  NAME: SAMPLE05 - Process Registration Subsystem DLL
  15.  
  16.  DESCRIPTION:
  17.      The DLL keeps a global count of the number of processes that
  18.      access it, running totals for each process that accesses the
  19.      subsystem, and a grand total for all processes.  There are two
  20.      external entry points for programs accessing the subsystem.  The
  21.      first is "DLLINCREMENT", which increments both the grand total
  22.      and the total for the calling process by the amount passed in.
  23.      The second entry point is "DLLSTATS", which prints out statistics
  24.      kept by the subsystem, including the grand total and the total
  25.      for the current process.
  26.  
  27.      The grand total and the total for the process are stored in a
  28.      single shared data segment of the subsystem.  Each process total
  29.      is stored in its own data segment.
  30.  
  31.  TASK:
  32.      Creating a simple subsystem DLL.
  33.  
  34.  FEATURE/CONCEPT:
  35.      Example of a subsystem _DLL_InitTerm function.
  36.  
  37.   HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
  38.        Simple type the name of the .exe file, that is:
  39.  
  40.             MAIN05
  41.  
  42.  
  43.  HOW TO BUILD THE SAMPLE PROJECT YOURSELF FROM THE COMMAND LINE:
  44.        - To build the DLL first:
  45.          From \sample05\dll directory
  46.  
  47.             nmake
  48.  
  49.        - To build the main program
  50.          From the \sample05  directory
  51.  
  52.             nmake
  53.  
  54.   ADDITIONAL INFORMATION
  55.   For additional information on this and other samples shipped
  56.   with the VisualAge for C++ product, please see the Guide to Samples
  57.   notebook.
  58.  
  59.   To access the notebook from Program Manager, open the
  60.   VisualAge for C++ product object, then open the Guide to Samples
  61.   notebook.
  62.  
  63.