home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / seh / readme.txt < prev    next >
Encoding:
Text File  |  1996-02-20  |  2.1 KB  |  61 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.  SAMPLE - Structured Exception Handling
  15.  
  16.  DESCRIPTION:
  17.      Opens a file and handle any exceptions in manipulating
  18.      the file via termination handlers and Global Unwinding.
  19.  
  20.      Manipulate a memory region to demonstrate exception
  21.      handlers and the exception record structure.
  22.  
  23.      Some concepts adapted from Advanced Windows NT bt Jeffrey Richter.
  24.  
  25.  TASK:
  26.      Opens a file which will fail and leave gracefully, 
  27.      manipulate a memory region and close the file.
  28.  
  29.  FEATURE/CONCEPTS:
  30.  
  31.      o   TRY-FINALLY Block
  32.      o   TRY-EXCEPT Block
  33.      o   Global Unwind
  34.      o   AbnormalTermination
  35.      o   GetExceptionCode
  36.      o   GetExceptionInformation
  37.  
  38.  
  39.  HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
  40.  
  41.      Simply type the name of the .EXE file, that is:
  42.  
  43.             SEH
  44.  
  45.  
  46.  HOW TO BUILD THE SAMPLE FROM THE COMMAND LINE:
  47.  
  48.     From the SEH directory type:
  49.           nmake
  50.  
  51.  ADDITIONAL INFORMATION
  52.  For additional information on this and other samples shipped
  53.  with the VisualAge for C++ product, please see the Guide to Samples
  54.  notebook.
  55.  
  56.  To access the notebook from Program Manager, open the
  57.  VisualAge for C++ product object, then open the Guide to Samples
  58.  notebook.
  59.  
  60.  
  61.