home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv7.zip / VACPP / IBMCPP / smarts / DTS / READ.ME < prev   
Text File  |  1995-06-02  |  3KB  |  78 lines

  1.  
  2. Project Smarts - Direct-to-SOM (DTS) application README
  3. -------------------------------------------------------
  4.  
  5. The project is organized into the following hierarchy
  6. which reflects the interdependencies between the projects:
  7.  
  8.   ┌─────────────────────────────────────────────────────┐
  9.   │          Direct-to-SOM Application                  │
  10.   │       (Builds an executable program that            │
  11.   │  uses objects in DOG.DLL, CAT.DLL, and ANIMAL.DLL)  │
  12.   └─────────────────────────────────────────────────────┘
  13.                         |
  14.                         |
  15.                         v
  16.     ┌────────────────────────────────────────────────┐
  17.     │               Dog Project                      │
  18.     │(Builds DOG.DLL and DOG.LIB, using ANIMAL.LIB)  │
  19.     └────────────────────────────────────────────────┘
  20.                         |
  21.                         |
  22.                         v
  23.     ┌────────────────────────────────────────────────┐
  24.     │                Cat Project                     │
  25.     │ (Builds CAT.DLL and CAT.LIB, using ANIMAL.LIB) │
  26.     └────────────────────────────────────────────────┘
  27.                         |
  28.                         |
  29.                         v
  30.         ┌───────────────────────────────────┐
  31.         │          Animal Project           │
  32.         │(Builds ANIMAL.DLL and ANIMAL.LIB) │
  33.         └───────────────────────────────────┘
  34.  
  35.  
  36. Select "Build" off the project's pop-up menu to build the
  37. project executables.  Four targets are built:
  38.  
  39. 1. A main .EXE executable program
  40. 2. A Dog.DLL dynamic link library and DOG.LIB import library
  41. 3. A Cat.DLL dynamic link library and CAT.LIB import library
  42. 4. An Animal.DLL dynamic link library and ANIMAL.LIB import library
  43.  
  44. ┌───────────────────────────────────────────────────────────────┐
  45. │ Note:                                                         │
  46. │                                                               │
  47. │ To run the DTS application executable, ensure that DOG.DLL,   │
  48. │ ANIMAL.DLL, and CAT.DLL are visible along the LIBPATH         │
  49. │ environment variable.  Select "Run target" from the           │
  50. │ top-level project to run the executable in the monitor window.│
  51. │                                                               │
  52. └───────────────────────────────────────────────────────────────┘
  53.  
  54.  
  55. About this application:
  56. -----------------------
  57.  
  58. This Direct-to-SOM Project Smarts application demonstrates how
  59. SOM classes can be created and subclasses using Direct-to-SOM
  60. C++.  Classes are written directly in C++, using explicit
  61. inheritance from the SOMObject class.  The writing or reading of
  62. IDL files becomes unnecessary.
  63.  
  64. In this Project Smarts application, a base class "Animal", and 
  65. two subclasses, "Cat" and "Dog", are declared and implemented in
  66. separate DLLs.  The Dog class DLL is built such that it can be 
  67. dynamically loaded using SOM APIs supplied for this purpose.  
  68. The application shows you how to load and use such a dynamic
  69. class.
  70.  
  71. In DTS development, there is a tricky distinction between the
  72. C++ name of a class or method, and the possibly different name
  73. that SOM knows it by.  The application makes this clear and
  74. illustrates how and where each name is used.
  75.  
  76.  
  77.  
  78.