home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / smarts / cppdll / cppdll.hpp < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.6 KB  |  60 lines

  1. --------------------------------------------------------------------------------
  2. --
  3. -- COPYRIGHT:
  4. --   IBM WorkFrame - Project Smarts
  5. --   (C) Copyright International Business Machines Corporation 1996
  6. --   Licensed Material - Program-Property of IBM - All Rights Reserved.
  7. --   US Government Users Restricted Rights - Use, duplication, or disclosure
  8. --   restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. --------------------------------------------------------------------------------
  11. <include prologcp.tde>
  12.  
  13. //-------------------------------------------
  14. // $FILE_NAME:tolower$.hpp - Header file for a C++ DLL
  15. //-------------------------------------------
  16.  
  17. #pragma library("$FILE_NAME:tolower$.lib")
  18.  
  19. /*--------------------------*/
  20. /* Define a base class      */
  21. /*--------------------------*/
  22. class area
  23.    {
  24.    private:
  25.       double dim1, dim2;
  26.    public:
  27.       static int   objectCount;
  28.       void setarea(double d1 , double d2);
  29.       void getDim(double &d1, double &d2);
  30.       virtual double getArea();
  31.       area::area(void);
  32.    };
  33.  
  34.  
  35. /*-----------------------------*/
  36. /* Define a derived class      */
  37. /*-----------------------------*/
  38. class rectangle : public area
  39.    {
  40.    public:
  41.       static int objectCount ;
  42.       double getArea();
  43.       rectangle::rectangle(void);
  44.    };
  45.  
  46.  
  47. /*------------------------------*/
  48. /* Define another derived class */
  49. /*------------------------------*/
  50. class triangle : public area
  51.    {
  52.    public:
  53.       static int objectCount;
  54.       double getArea();
  55.       triangle::triangle(void);
  56.    };
  57.  
  58.  
  59.  
  60.