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
Wrap
Text File
|
1995-06-02
|
3KB
|
78 lines
Project Smarts - Direct-to-SOM (DTS) application README
-------------------------------------------------------
The project is organized into the following hierarchy
which reflects the interdependencies between the projects:
┌─────────────────────────────────────────────────────┐
│ Direct-to-SOM Application │
│ (Builds an executable program that │
│ uses objects in DOG.DLL, CAT.DLL, and ANIMAL.DLL) │
└─────────────────────────────────────────────────────┘
|
|
v
┌────────────────────────────────────────────────┐
│ Dog Project │
│(Builds DOG.DLL and DOG.LIB, using ANIMAL.LIB) │
└────────────────────────────────────────────────┘
|
|
v
┌────────────────────────────────────────────────┐
│ Cat Project │
│ (Builds CAT.DLL and CAT.LIB, using ANIMAL.LIB) │
└────────────────────────────────────────────────┘
|
|
v
┌───────────────────────────────────┐
│ Animal Project │
│(Builds ANIMAL.DLL and ANIMAL.LIB) │
└───────────────────────────────────┘
Select "Build" off the project's pop-up menu to build the
project executables. Four targets are built:
1. A main .EXE executable program
2. A Dog.DLL dynamic link library and DOG.LIB import library
3. A Cat.DLL dynamic link library and CAT.LIB import library
4. An Animal.DLL dynamic link library and ANIMAL.LIB import library
┌───────────────────────────────────────────────────────────────┐
│ Note: │
│ │
│ To run the DTS application executable, ensure that DOG.DLL, │
│ ANIMAL.DLL, and CAT.DLL are visible along the LIBPATH │
│ environment variable. Select "Run target" from the │
│ top-level project to run the executable in the monitor window.│
│ │
└───────────────────────────────────────────────────────────────┘
About this application:
-----------------------
This Direct-to-SOM Project Smarts application demonstrates how
SOM classes can be created and subclasses using Direct-to-SOM
C++. Classes are written directly in C++, using explicit
inheritance from the SOMObject class. The writing or reading of
IDL files becomes unnecessary.
In this Project Smarts application, a base class "Animal", and
two subclasses, "Cat" and "Dog", are declared and implemented in
separate DLLs. The Dog class DLL is built such that it can be
dynamically loaded using SOM APIs supplied for this purpose.
The application shows you how to load and use such a dynamic
class.
In DTS development, there is a tricky distinction between the
C++ name of a class or method, and the possibly different name
that SOM knows it by. The application makes this clear and
illustrates how and where each name is used.