home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / keysrt.zip / README < prev    next >
Text File  |  1996-02-25  |  2KB  |  55 lines

  1. NAME: VKEYSS.ZIP (IVKeySortedSet )
  2.  
  3. COPYRIGHT:
  4. ----------
  5. Copyright (C) International Business Machines Corp., 1991,1995.
  6.  
  7. DISCLAIMER OF WARRANTIES:
  8. -------------------------
  9. The following [enclosed] code is sample code created by IBM
  10. Corporation.  This sample code is not part of any standard IBM product
  11. and is provided to you solely for the purpose of assisting you in the
  12. development of your applications.  The code is provided "AS IS",
  13. without warranty of any kind.  IBM shall not be liable for any damages
  14. arising out of your use of the sample code, even if they have been
  15. advised of the possibility of such damages.
  16.  
  17.  
  18. DESCRIPTION:
  19.  
  20. The sample contains a wrapper non-visual part for IVKeySortedSet.  You may
  21. ask why you have to do this, this is because Visual Builder does not generate
  22. codes correctly for the template class that has more than one pamaraters with
  23. the current release of VAC++ V3.0.  IVkeySortedSet is a template class and
  24. it requires 2 parameters.
  25.  
  26.  
  27. How to build the wrapper part:
  28.  
  29.  - create an VBE file for the wrapper part which inherits from IVKeySortedSet
  30.    and then import it in VB, see the included vbe file IMYKYSRT.VBE.
  31.  
  32.  Note: You don't need to rebuild this part if you plan to use the
  33.        IVKeySortedSet collection, just load up mycc.vbb.
  34.  
  35. How to use this wrapper part in a VB part:
  36.  
  37.  - Load up VBCC.VBB and then MYCC.VBB in the VB main dialog box.
  38.  - Add/Drop IMyKeySortedSet part onto the f/f surface.  For more details,
  39.    refer to test.vbb
  40.  - Edit the global key acess function in keyacc.cpp to work with your
  41.    collection.  For example, the sample contains the collection of pointers
  42.    to APerson objects, the Name attribute of APerson is the key whose type
  43.    is IString.
  44.  - Include keyacc.hpp in the part where the collection is used. In the
  45.    sample, the collection is used in the APerson part.  For more details
  46.    on the implementation of IVKeySortedSet, refer to the Open Class User's
  47.    Guide and Open Class online reference.
  48.  
  49.  Note: before using the IMyKeySortedSet part, it is required to load up
  50.        VBCC.VBB first.  This VBB contains the definitions for IVKeySortedSet.
  51.  
  52.  
  53. This sample was created by Brian Luc, bluc@vnet.ibm.com
  54. Feb 23, 1996.
  55.