home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
VISBUILD
/
CALCULAT
/
README
< prev
Wrap
Text File
|
1995-06-08
|
7KB
|
194 lines
NAME: CLCLTRVW
DESCRIPTION:
The calculator application is one of many
applications that are being used to test the C++
Visual Builder. It is included in this driver of the
product as a sample for viewing, execution, and
building purposes.
The calculator consists of a set of visual and
non-visual parts. The code for the non-visual
parts is already written, compiled, and linked
into a DLL named CPPOV13.DLL.
The visual parts were built and connected into
an application with the non-visual parts using
the C++ Visual Builder Tool. The two visual
parts that comprise the calculator are
represented by the Visual Builder "class files"
CLCLTRVW.VBB and KYPDVIEW.VBB.
TASK:
Build a simple Object Oriented calculator.
CONCEPT/FEATURE:
Refer to AVLTCAL2.SPC for specifications of this
application.
PROJECT LOCATION:
Inside the VisBuild Sample folder (inside the
VisualAge C++ Samples folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\visbuild\calculat
where X: is the drive you installed the samples
and document component of VisualAge C++.
Select Source Files for a list of the source files
in this directory.
HOW TO RUN THE SAMPLE:
Note: Before running this sample, you must add
\ibmcpp\samples\visbuild\calculat\cppov13 to
the LIBPATH in your CONFIG.SYS so the sample
can find the CPPOV13.DLL.
From within the WorkFrame environment:
To run the prebuilt project, open the
Samples folder on your OS/2 desktop
then double-click on the project's icon
to open the project view of the
sample. Click on the RUN button of
the project's toolbar.
From the command line:
Simply type the name of the .EXE file,
that is:
CLCLTRVW
HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
From within the WorkFrame environment:
Open the Samples folder on your OS/2
desktop then double-click on the
project's icon to open the project view
of the sample. In the upper half of the
project window you will see the icons
of the files associated with the sample.
Start the Visual Builder component of
VisualAge C++ by selecting Visual from
the Project pulldown. From the main
Visual Builder Window:
1. Select all the parts in the "Visual
Parts" list and then select
"Part->Generate->Part source"
from the Menubar.
2. Select only the "CalculatorView"
part in the "Visual Parts" list and
then select
"Part->Generate->main() for part"
from the Menubar.
3. Now invoke a Project Build Action.
To run the sample project, see How to
run the sample project above.
From the command line:
Start the Visual Builder component of
VisualAge C++ by typing:
icsvb
From the main Visual Builder Window:
1. Select all the parts in the "Visual
Parts" list and then select
"Part->Generate->Part source"
from the Menubar.
2. Select only the "CalculatorView"
part in the "Visual Parts" list and
then select
"Part->Generate->main() for part"
from the Menubar.
3. From an OS/2 command line, make
this sample's directory the current
directory and invoke the BUILD.CMD
program by typing:
BUILD
HOW TO INSPECT THE VISUAL PARTS USING THE VISUAL BUILDER
There are three "class files" that make up the
application, CLCLTRVW.VBB, KYPDVIEW.VBB, and
ICALCPRT.VBB.
1. Start the Visual Builder Tool -- from the
command line, type:
icsvb
or from the project view of the
sample:select Visual from the Project
pulldown.
2. When the Visual Builder Window appears,
select from the Menubar the "File->Load"
option.
3. The Load Files dialog will appear with a list
of "class files" that may be loaded. Select
from the list the files CLCLTRVW.VBB,
KYPDVIEW.VBB, and ICALCPRT.VBB and
press the "OK" button. (The ICALCPRT.VBB
file contains the already imported Parts
Interface Defintions for the calculator
non-visual parts.)
4. You may now select CLCLTRVW.VBB and
KYPDVIEW.VBB from the "Loaded Part Files"
list in the Visual Builder Window. This will
display "calculatorView" and "keypadView"
in the "Visual Parts" list of this Window.
5. You may now select either or both of these
parts from the "Visual Parts" list and then
select "Part->Open" from the Menubar to
open these parts for viewing and/or
editting.
SOFTWARE/HARDWARE PREREQUISITES:
IBM VisualAge C++
OS/2 2.1 or Warp
DB2/2 1.2
IBM or compatible 486 and up.
ADDITIONAL INFORMATION:
For more information on the creation and
use of projects in the WorkFrame
environment, see the VisualAge C++ for
OS/2 User's Guide.
For more information on the the Visual
Builder, see the VisualAge C++ for OS/2
Visual Builder User's Guide.
Both books can be found online. To access an
online book, simply open the main VisualAge
C++ desktop folder, then open the Information
Folder inside. To view a book, double-click on
that book's icon.
REQUIRED FILES:
AVLTCAL2.SPC High level specification of the calculator
application.
CLCLTRVW.EXE The executable calculator application.
CPPOV13*.* DEF, LIB, MAK and DLL for the calculator
application non-visual parts.
*.HPP files C++ header files for the calculator non-visual
parts.
*.CPP files C++ code files for the calculator non-visual parts.
ICALCPRT.VBE Non-visual Part Interface Definition Import file.
ICALCPRT.VBB
CLCLTRVW.VBB
KYPDVIEW.VBB Visual Builder "class files" for
the calculator application.