home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v1.zip
/
IBMCPP
/
SAMPLES
/
ICLUI
/
HELLO6
/
README6.TXT
< prev
Wrap
Text File
|
1993-05-12
|
14KB
|
192 lines
***************************************************************************
* HELLO WORLD SAMPLE PROGRAM - Version 6: Readme File (README6.TXT) *
* *
* COPYRIGHT: Copyright(C) International Business Machines Corp.,1992,1993.*
* *
* 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. *
* *
*-------------------------------------------------------------------------*
* See the User Interface Class Library Users Guide for more information *
* about this sample program. *
* *
* C++ Hello World Vision 6 Key Functions: *
* *
* - Use Enlish, German or Portuguese DLL resources via Command Line *
* - Add Open Menu Item and use File Dialog *
* - Show MessageBox when can not read input file from File Dialog *
* - Add Push Buttons & Set Canvas to change alignment *
* - Add Menu PopUp for changing the alignment *
* - Change Status Area to Split Canvas and add Date & Time *
* - Add ATimeHandler & Update Time on Status Area *
* - Add code to handle deleting of objects when done *
* - Add HELLOWPS.CMD to create Workplace Folder with Programs *
***************************************************************************
***************************************************************************
* File list: *
* README6.TXT - readme command file for HELLO6.EXE *
* AHELLOW6.CPP - source code for main() and AHelloWindow class *
* AHELLOW6.HPP - class header file for AHellowWindow *
* AHELLOW6.H - symbolic defintion file for HELLO6.EXE *
* ADIALOG6.CPP - source code to create the ATextDialog class *
* ADIALOG6.HPP - class header file for ATextDialog *
* AEARTHW6.CPP - source code to create the AEarthWindow class *
* AEARTHW6.HPP - class header file for AEarthWindow *
* ACOLORW6.CPP - source code to create the AColorWindow class *
* ACOLORW6.HPP - class header file for AColorWindow *
* ASPEEDW6.CPP - source code to create the ASpeedWindow class *
* ASPEEDW6.HPP - class header file for ASpeedWindow *
* ATIMEHDR.CPP - source code to create the ATimeHandler class *
* ATIMEHDR.HPP - class header file for ATimeHandler *
* ADUMMY6.CPP - File to provide dummy file for Resource DLL's *
* AHELLOWE.RC - English resource file for HELLO6.EXE *
* AHELLOWG.RC - German resource file for HELLO6.EXE *
* AHELLOWP.RC - Portuguese resource file for HELLO6.EXE *
* AHELLOW6.ICO - icon file for HELLO6.EXE *
* BRAZIL.ICO - icon file for Postuguese option of HELLO6.EXE *
* GERMANY.ICO - icon file for German option of HELLO6.EXE *
* ADIALOGE.DLG - English dialog resource source file for HELLO6.EXE *
* ADIALOGG.DLG - German dialog resource source file for HELLO6.EXE *
* ADIALOGP.DLG - Portuguese dialog resource source file for HELLO6.EXE *
* ADIALOGE.RES - dialog resource file for HELLO6.EXE *
* AHELLOW6.IPF - help file for HELLO6.EXE *
* HELLO6.INI - Profile for HELLO6.EXE *
* HELLO6.HLO - Sample File to Read *
* AHELLOW6.DEF - module definition file for HELLO6.EXE *
* AHELLOWE.DEF - module definition file for AHELLOWE.DLL *
* AHELLOWG.DEF - module definition file for AHELLOWG.DLL *
* AHELLOWP.DEF - module definition file for AHELLOWP.DLL *
* AMAKE6.MAK - make file to create HELLO6.EXE *
* AMAKE6.CMD - command file to create HELLO6.EXE *
* BUILD6.CMD - command file to compile, link and run HELLO6.EXE *
* HELLOWPS.CMD - command file to create WPS Folder with Program Objects *
* CLEANUP6.CMD - command file to cleanup (erase) generated files: *
* HELLO6.EXE, AHELLOW6.OBJ, ADIALOG6.OBJ, AEARTHW6.OBJ, *
* AHELLOW6.MAP, AHELLOW6.HLP, AHELLOW6.ERR, AHELLOWE.RES,*
* AHELLOWE.DLL, AHELLOWG.DLL, AHELLOWP.DLL, ATIMEHDR.OBJ,*
* AHELLOWG.RES, AHELLOWP.RES, AHELLOWG.MAP, AHELLOWP.MAP *
***************************************************************************
***************************************************************************
* File Relationship Diagram (Files in uppercase, Programs in lowercase) *
* *
* ADIALOGE.RES *
* v *
* AHELLOW6.H dlgedit iconedit *
* │ │ v v *
* AHELLOW6.HPP │ ├─────>ADIALOGE.DLG ┌───AHELLOW6.ICO *
* ADIALOG6.HPP │ ├──────>ADIALOGG.DLG │ ┌──GERMANY.ICO *
* AEARTHW6.HPP │ ├───────>ADIALOGP.DLG │ │ ┌─BRAZIL.ICO *
* ATIMEHDR.HPP │ │ ║ │ │ │ *
* ACOLORW6.HPP │ │ ║ │ │ │ *
* ASPEEDW6.HPP │ │ ║ │ │ │ *
* v │ │ v │ │ │ *
* AHELLOW6.CPP <─────┤ ├────────────> AHELLOWE.RC <┘ │ │ *
* ADIALOG6.CPP <────┤ ├─────────────> AHELLOWG.RC <─┘ │ *
* AEARTHW6.CPP │ └──────────────> AHELLOWP.RC <──┘ *
* ATIMEHDR.CPP │ │ ^.............AHELLOW6.IPF *
* ACOLORW6.CPP <─┤ │ │ *
* ASPEEDW6.CPP <┘ │ v *
* ║ rc -r ipfc /x *
* icc -c │ | *
* ║ │ | *
* ║ │ | *
* AHELLOW6.OBJ AHELLOWE.RES AHELLOW6.HLP *
* ADIALOG6.OBJ AHELLOWG.RES . *
* AEARTHW6.OBJ ADUMMY6.CPP AHELLOWP.RES══╗ . *
* ATIMEHDR.OBJ V ║ . *
* ACOLORW6.OBJ ADUMMY6.OBJ ║ . *
* ║ V ║ . *
* ║ AHELLODE.DEF->link386─>AHELLODE.DLL ║ . *
* ║ AHELLODG.DEF │ AHELLODG.DLL V . *
* ║ AHELLODP.DEF │ AHELLODP.DLL══> rc . *
* ║ v ║ . *
* ╚════════╗ AHELLOWE.MAP ║ . *
* V AHELLOWG.MAP V . *
* AHELLOW6.DEF─>icc /Tdp AHELLOWP.MAP AHELLODE.DLL . *
* │ │ AHELLODG.DLL . *
* AHELLOW6.MAP<──┘ │ AHELLODP.DLL . *
* │ . . *
* │ v v *
* └──────────────────────────────────>AHELLOW6.EXE *
***************************************************************************
***************************************************************************
* ╔═══════════╗ *
* Key Window Parent Relationship Diagram: Diagram ║Class Name ║ *
* Key: ║───────────║ *
* IApplication::current().run() ║Object Name║ *
* ╚═══════════╝ *
* *
* ╔════════════╗ ╔═══════════╗ *
* AColorWindow ---+-------║AHelloWindow║──────────────║ATextDialog║ *
* | ║────────────║ ║───────────║ *
* ASpeedWindow ---+ ║ mainWindow ║ ║textDialog ║ *
* ╚════════════╝ ╚═══════════╝ *
* ╔════════╗ │ ╔══════╗ │ *
* ║IMenuBar║───────┼───────║ITitle║ ╔═══════════╗ *
* ║────────║ │ ╚══════╝ ║IEntryField║ *
* ║menuBar ║ │ ║───────────║ *
* ╚════════╝ │ ║ textField ║ *
* ╔════════════╗ │ ╔═══════════╗ ╚═══════════╝ *
* ║IAccelerator║───────┼───────║IHelpWindow║ *
* ╚════════════╝ │ ║───────────║ *
* │ ║ help ║ *
* │ ╚═══════════╝ *
* ┌───────────────┬────────┴────────────┬─────────────────┐ *
* ╔════════════╗ ╔════════════╗ ╔══════════╗ ╔═════════╗ *
* ║ISplitWindow║ ║ISplitWindow║ ║ISetCanvas║ ║IInfoArea║ *
* ║────────────║ ║─────────── ║ ║──────────║ ║─────────║ *
* ║statusCanvas║ ║clientWindow║ ║ buttons ║ ║infoArea ║ *
* ╚════════════╝ ╚════════════╝ ╚══════════╝ ╚═════════╝ *
* │ ├────────────┐ ├─────────────────┐ *
*╔═══════════╗│ ╔════════════╗ ╔════════╗ ╔═══════════╗ ╔════════════╗*
*║IStaticText║┤ ║ISplitWindow║ ║IListBox║ ║IPushButton║ ║IPushButton ║*
*║───────────║│ ║────────────║ ║────────║ ║───────────║..║────────────║*
*║ statusLine║│ ║hellowCanvas║ ║listBox ║ ║ leftButton║ ║ helpButton ║*
*╚═══════════╝│ ╚════════════╝ ╚════════╝ ╚═══════════╝ ╚════════════╝*
* │ ├───────────────┐ * *
*╔═══════════╗│ ╔═══════════╗ ╔════════════╗ * *
*║IStaticText║┤ ║IStaticText║ ║AEarthWindow║ * *
*║───────────║│ ║───────────║ ║────────────║ * *
*║ date ║│ ║ hello ║ ║earthWindow ║ * *
*╚═══════════╝│ ╚═══════════╝ ╚════════════╝ * *
* │ │ *
*╔═══════════╗│ ╔═════════╗ *
*║IStaticText║┘ ║IPopMenu ║ *
*║───────────║ ╚═════════╝ *
*║ time ║ *
*╚═══════════╝ *
***************************************************************************
***************************************************************************
* The HELLO6.EXE Sample Application call be build/run in three ways: *
* *
* Option 1: Run BUILD6.CMD *
* *
* This option will compile, link, execute HELLO6.EXE. It will then *
* cleanup all files created by BUILD6.CMD. *
* *
* Option 2: Run AMAKE6.CMD *
* Run HELLO6.EXE or HELLO6 /p or HELLO6 /g *
* Run CLEANUP6.CMD *
* *
* AMAKE6.CMD will compile and link HELLO6.EXE. *
* HELLO6 /p will run HELLO6 using the Portuguese Resource DLL *
* HELLO6 /g will run HELLO6 using the German Resource DLL *
* CLEANUP6.CMD will cleanup files build by AMAKE6.CMD *
* *
* Option 3: Run AMAKE6.CMD *
* Run HELLOWPS.CMD *
* *
* AMAKE6.CMD will compile and link HELLO6.EXE. *
* HELLOWPS.CMD will create a Work Place Shell Folder with Program Objects*
***************************************************************************