home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
VISBUILD
/
RAPSHEET
/
README
< prev
next >
Wrap
Text File
|
1995-06-08
|
6KB
|
140 lines
NAME: Police Rap Sheet
DESCRIPTION:
This application retrieves information about
suspects from a database and displays the list of
suspects in a container. A notebook is used to
display detailed information about a suspect.
CONCEPT/FEATURE:
How to build a simple GUI application that
connects to a DB/2 Database using the Visual
Builder.
SOURCE FILE LOCATION:
X:\ibmcpp\samples\visbuild\rapsheet
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:
VBRAPSHT.EXE is not meant to be executed.
This application retrieves data from a DB2/2
database, but the database that is bound to the
executable file is not provided. The database
access was not designed to be used as an
example, but rather as a means to verify the
visual and nonvisual parts that comprise this
application. You can use the Visual Builder to
browse the visual and nonvisual parts that
comprise the Police Rap Sheet application.
HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
You can regenerate this application's source as
follows, but YOU SHOULD NOT ATTEMPT TO
REBUILD THIS SAMPLE!
To regenerate this application's source, do the
following 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 "IRapMainView" part in the
"Visual Parts" list and then select
"Part->Generate->main() for part" from the
Menubar.
HOW TO INSPECT THE VISUAL PARTS USING THE VISUAL BUILDER
There are two "class files" that make up
the application, VBRPSHTN.VBB and
VBRPSHTV.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
listed in step number one (1) above
and press the "OK" button. Again using
the Load Files dialog, load the file
VBSAMPLE.VBB from the
\ibmcpp\dde4vb directory.
4. You may now select the VBB's from
the "Loaded Part Files" list in the
Visual Builder Window. This will then
display the application's visual parts in
the "Visual Parts" list of the Visual
Builder Window.
5. You may now select any or all of
these parts from the "Visual Parts" list
and then select "Part->Open" from the
Menubar to open these parts for
viewing and/or editing.
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:
README Description and instructions for sample.
VBRAPSHT.SPC High level specification of the Police Rap Sheet
application.
VBRAPSHT.EXE This file is not intended for execution. It requires
a database which has not been provided. You can
use the Visual Builder to view the visual and
nonvisual parts that comprise this application.
CPPOV23*.* DEF, LIB, MAK and DLL for the Police Rap Sheet
application non-visual parts.
CPPOV23R.* DEF, MAK, RC, CPP and DLL for the Police Rap
Sheet application resource DLL. The .mak and .def
file are provided as examples only. Do not try to
nmake the .mak file (the icons and bitmaps it
references are not provided).
.HPP/.H files C++ header files for the Police Rap Sheet
non-visual parts.
.CPP files C++ code files for the Police Rap Sheet non-visual
parts.
VBRPSHTN.VBE Non-visual Part Interface Definition Import file.
.VBB files Visual Builder "part files" for the Police Rap Sheet
application. The Police Rap Sheet application also
requires the VBSample.vbb file to be loaded.