*************************************************************************** * HELLO WORLD SAMPLE PROGRAM - Version 2: Readme File (README2.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. * *-------------------------------------------------------------------------* * C++ Hello World Version 2 Key Functions: * * - Create Main Window (AHellowWindow) as subclass of IFrameWindow * * - Gets the "Hello, World!!" text string and other items from a * * resource file * * - Sets the window title from a resource file * * - Creates and sets the information area at the bottom of the * * client area * * * * * *************************************************************************** *************************************************************************** * File list: * * README2.TXT - Readme file for HELLO2.EXE. * * AHELLOW2.CPP - Source code for the main() function and the * * AHelloWindow class. * * AHELLOW2.HPP - Header file for the AHellowWindow class. * * AHELLOW2.H - Symbolic defintion file for HELLO2.EXE. * * AHELLOW2.RC - Resource file for HELLO2.EXE. * * AHELLOW2.ICO - Icon file for HELLO2.EXE. * * AHELLOW2.DEF - Module definition file for HELLO2.EXE. * * AMAKE2.MAK - Make file to create HELLO2.EXE. * * AMAKE2.CMD - Command file to create HELLO2.EXE. * * BUILD2.CMD - Command file to compile, link and run HELLO2.EXE. * * CLEANUP2.CMD - Command file to clean up (erase) the following * * generated files: HELLO2.EXE, AHELLOW2.OBJ, * * AHELLOW2.MAP, AHELLOW2.ERR, and AHELLOW2.RES. * * * *************************************************************************** *************************************************************************** * * * File Relationship Diagram (Files are in upper case letters; programs * * are in lower case letters.) * * * * AHELLOW2.H iconedit * * ³ ³ ³ * * AHELLOW2.HPP ³ ³ AHELLOW2.ICO * * º ³ ³ ³ * * º ³ ³ ³ * * v ³ ³ ³ * * AHELLOW2.CPP <ÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄÄÄ> AHELLOW2.RC<ÄÙ * * º ³ * * º rc -r * * º ³ * * v AHELLOW2.RES * * icc -c ÍÍÍÍÍ AHELLOW2.OBJ ³ * * º ³ * * v ³ * * AHELLOW2.DEF ÄÄ>icc /Tdp ->AHELLOW2.MAP ³ * * ³ ³ * * v v * * HELLO2.EXE ÄÄÄÄÄÄÄÄÄÄ> rc ÄÄÄÄÄÄÄÄÄÄÄ> HELLO2.EXE * * * *************************************************************************** *************************************************************************** * ÉÍÍÍÍÍÍÍÍÍÍÍ» * * Window Parent Relationship Diagram: Diagram ºClass Name º * * Key: ºÄÄÄÄÄÄÄÄÄÄĺ * * IApplication::current().run() ºObject Nameº * * ³ ÈÍÍÍÍÍÍÍÍÍÍͼ * * ³ * * ÉÍÍÍÍÍÍÍÍÍÍÍÍ» * * ºAHelloWindowº * * ºÄÄÄÄÄÄÄÄÄÄÄĺ * * º mainWindow º * * ÈÍÍÍÍÍÍÍÍÍÍÍͼ * * ³ ÉÍÍÍÍÍÍ» * * ÃÄÄÄÄÄÄÄÄÄÄ ºITitleº * * ³ ÈÍÍÍÍÍͼ * * ³ * * ³ * * ³ * * ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ * * ÉÍÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍ» * * ºIStaticTextº ºIInfoAreaº * * ºÄÄÄÄÄÄÄÄÄÄĺ ºÄÄÄÄÄÄÄÄĺ * * º hello º ºinfoArea º * * ÈÍÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍͼ * * (Client Window) * * * *************************************************************************** *************************************************************************** * The HELLO2.EXE Sample Application can be built in two ways: * * * * Option 1: Run BUILD2.CMD * * * * This option compiles, links, and executes HELLO2.EXE. It then * * cleans up all files created by BUILD2.CMD. * * * * Option 2: Run AMAKE2.CMD * * Run HELLO2.EXE * * Run CLEANUP2.CMD * * * * AMAKE2.CMD compiles and links HELLO2.EXE. * * CLEANUP2.CMD cleans up the files built by MAKE2.CMD. * ***************************************************************************