home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
IOC
/
HELLO6
/
README
< prev
Wrap
Text File
|
1995-06-09
|
7KB
|
198 lines
***************************************************************************
* HELLO WORLD SAMPLE PROGRAM - Version 6: Readme File readme *
* *
* COPYRIGHT: Copyright(C) International Business Machines Corp.,1992,1995.*
* *
* DISCLAIMER OF WARRANTIES: *
* The following [enclosed] code is sample code created by IBM *
* Corporation. This sample code is not part of any standard IBM product*
* and is provided to you solely for the purpose of assisting you in the *
* development of your applications. The code is provided "AS IS", *
* without warranty of any kind. IBM shall not be liable for any damages*
* arising out of your use of the sample code, even if they have been *
* advised of the possibility of such damages. *
***************************************************************************
Hello World
These samples, which begin with hello1 and increase in complexity and
function up to hello6, progressively demonstrate many of the
capabilities of the User Interface Class Library.
o "Hello World 1"
o "Hello World 2"
o "Hello3"
o "Hello4"
o "Hello5"
o "Hello World 6"
Hello World 6
DESCRIPTION:
While this final version of the Hello World samples is much more
complex than hello1, it contains a large amount of common
application functionality and demonstrates many of the
interactions and class usage required by a real user interface
application.
Hello6 adds all of the following: a subclass of IHandler for
providing a new timer event; real time date and time fields on
the main window; use of a font dialog; a new settings frame
containing an INotebook object with two pages of canvases and
controls; use of IProfile class for storing the settings; and
pop-up menus for making the stars twinkle. Hello6 also replaces
the entry field in the dialog window with a drop-down list
combination box.
PROJECT LOCATION:
Inside the IOC Samples folder (inside the VisualAge C++ Samples
folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\ioc\hello6
where X: is the drive you installed the samples and document
component of VisualAge C++.
HOW TO RUN THE SAMPLE:
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:
HELLO6
If the sample fails to execute or abnormally ends, you can
get more information about the failure by turning on the
ICLUI trace. This is done by setting the environment
variable ICLUI_TRACE as follows:
set ICLUI_TRACE=ON
set ICLUI_TRACETO=STDERR
The second export controls where the trace information is
reported. With tracing turned on, ICLUI exception text will
be written to a standard error file. For example:
hello1 >hello1.out 2>&1
The exception data is now in the file hello1.out.
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.
From the Project pulldown, select Build -> Rebuild All. To
run the sample project, see HOW TO RUN THE SAMPLE PROJECT
above.
FROM THE COMMAND LINE:
- A command file is provided to allow rebuilding of the
WorkFrame projects from the command line. Simply type:
BUILD
To run the sample project, see HOW TO RUN THE SAMPLE PROJECT
above.
- The sample application can also be built by entering:
NMAKE
with no options while in the directory containing the
sample application files. The makefile is named
Makefile
To clean up the files generated from running make, enter:
NMAKE CLEAN
while in the directory containing the sample program files.
SOFTWARE/HARDWARE PREREQUISITES:
o IBM VisualAge C++
o OS/2 2.1 or Warp
o IBM or compatible 386 and up.
ADDITIONAL INFORMATION:
o For more information on the creation and use of projects in
the WorkFrame environment, see the VisualAge C++ for OS/2
User's Guide.
o For more information on the User Interface Classes, see the
VisualAge C++ for OS/2 Open Class Library 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 - HELLO6:
README
description and instructions for sample
BUILD.CMD
command file for building in project form from the command file
HELLO6.EXE
sample's executable file
AHELLOW6.CPP
C++ Source code for main() and AHelloWindow class
AHELLOW6.HPP
Class header file for AHellowWindow
AHELLOW6.H
Symbolic definition file
AHELLOW6.RC
resource file
AHELLOW6.ICO
icon file
AHELLOW6.IPF
tagged help file source
AHELLOW6.HLP
compiled help file
HELLO6_H
AEARTHW6.CPP
Source code for AEarthWindow class
AEARTHW6.HPP
Class header file for AEarthWindow
ADIALOG6.CPP
Source code for ATextDialog class
ADIALOG6.HPP
Class header file for ATextDialog
ANOTEBW6.CPP
Source code for ANotebookWindow class
ANOTEBW6.HPP
Class header file for ANotebookWindow
ATIMEHDR.CPP
Source code for ATimeHandler class
ATIMEHDR.HPP
Class header file for ATimeHandler
MAKEFILE
make file to build the sample program