home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / LISTBOX / README < prev   
Text File  |  1995-06-09  |  6KB  |  125 lines

  1. ******************************************************************************
  2. * List Box Sample Program Readme                                             *
  3. *                                                                            *
  4. * COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1995. *
  5. *                                                                            *
  6. * DISCLAIMER OF WARRANTIES:                                                  *
  7. *   The following [enclosed] code is sample code created by IBM              *
  8. *   Corporation.  This sample code is not part of any standard IBM product   *
  9. *   and is provided to you solely for the purpose of assisting you in the    *
  10. *   development of your applications.  The code is provided "AS IS",         *
  11. *   without warranty of any kind.  IBM shall not be liable for any damages   *
  12. *   arising out of your use of the sample code, even if they have been       *
  13. *   advised of the possibility of such damages.                              *
  14. ******************************************************************************
  15. * NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  16.  
  17. LISTBOX
  18.  
  19.    DESCRIPTION:
  20.  
  21.         The List Box Sample demonstrates adding and retrieving data from
  22.         a listbox.  You can add items, retrieve select items, or retrieve
  23.         all the items to the second listbox.  In addition, you can select
  24.         or deselect all listbox items and test for exception handling.
  25.         Classes used include IListBox and IException.
  26.  
  27.    PROJECT LOCATION:
  28.         Inside the IOC Samples folder (inside the VisualAge C++ Samples
  29.         folder).
  30.  
  31.    SOURCE FILE LOCATION:
  32.         X:\ibmcpp\samples\ioc\listbox
  33.  
  34.         where X: is the drive you installed the samples and document
  35.         component of VisualAge C++.
  36.  
  37.    HOW TO RUN THE SAMPLE:
  38.  
  39.         FROM WITHIN THE WORKFRAME ENVIRONMENT:
  40.              To run the prebuilt project, open the Samples folder on your
  41.              OS/2 desktop then double-click on the project's icon to open
  42.              the project view of the sample.  Click on the RUN button of
  43.              the project's toolbar.
  44.  
  45.         FROM THE COMMAND LINE:
  46.              Simply type the name of the .EXE file, that is:
  47.  
  48.                  LISTBOX
  49.  
  50.              If the sample fails to execute or abnormally ends, you can
  51.              get more information about the failure by turning on the
  52.              ICLUI trace.  This is done by setting the environment
  53.              variable ICLUI_TRACE as follows:
  54.  
  55.                    set ICLUI_TRACE=ON
  56.                    set ICLUI_TRACETO=STDERR
  57.  
  58.              The second export controls where the trace information is
  59.              reported.  With tracing turned on, ICLUI exception text will
  60.              be written to a standard error file. For example:
  61.  
  62.                    hello1 >hello1.out 2>&1
  63.  
  64.              The exception data is now in the file hello1.out.
  65.  
  66.    HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
  67.  
  68.         FROM WITHIN THE WORKFRAME ENVIRONMENT:
  69.              Open the Samples folder on your OS/2 desktop then
  70.              double-click on the project's icon to open the project view
  71.              of the sample. In the upper half of the project window you
  72.              will see the icons of the files associated with the sample.
  73.              From the Project pulldown, select Build -> Rebuild All.  To run
  74.              the sample project, see HOW TO RUN THE SAMPLE PROJECT above.
  75.  
  76.         FROM THE COMMAND LINE:
  77.            - A command file is provided to allow rebuilding of the
  78.              WorkFrame projects from the command line.  Simply type:
  79.  
  80.                  BUILD
  81.  
  82.              To run the sample project, see HOW TO RUN THE SAMPLE PROJECT 
  83.              above.
  84.  
  85.            - The sample application can also be built by entering:
  86.                  NMAKE
  87.              with no options while in the directory containing the
  88.              sample application files.  The makefile is named
  89.                  Makefile
  90.              To clean up the files generated from running make, enter:
  91.                  NMAKE CLEAN 
  92.              while in the directory containing the sample program files. 
  93.  
  94.  
  95.    SOFTWARE/HARDWARE PREREQUISITES:
  96.  
  97.         o   IBM VisualAge C++
  98.         o   OS/2 2.1 or Warp
  99.         o   IBM or compatible 386 and up.
  100.  
  101.    ADDITIONAL INFORMATION:
  102.  
  103.         o   For more information on the creation and use of projects in
  104.             the WorkFrame environment, see the VisualAge C++ for OS/2
  105.             User's Guide.
  106.         o   For more information on the User Interface Classes, see the
  107.             VisualAge C++ for OS/2 Open Class Library User's Guide.
  108.  
  109.         Both books can be found online.  To access an online book, simply
  110.         open the main VisualAge C++ desktop folder, then open the
  111.         Information Folder inside.  To view a book, double-click on that
  112.         book's icon.
  113.  
  114.  
  115.  
  116.  REQUIRED FILES:
  117.                                                               
  118.    README         - Readme file for LISTBOX                              
  119.    alistbox.cpp   - Source code for LISTBOX                              
  120.    alistbox.hpp   - Class header file form LISTBOX                       
  121.    alistbox.h     - Defines for LISTBOX                                  
  122.    alistbox.rc    - Resource File for LISTBOX                          
  123.    alistbox.ico   - OS/2 icon file                                       
  124.    Makefile.os2   - Make file for building this sample program           
  125.