home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pwrgu2.zip
/
POWERGU2.EXE
/
SHIPAPP
/
HELLO1
/
HELLO1.CPP
next >
Wrap
Text File
|
1995-07-25
|
633b
|
32 lines
#define INCL_DOSPROCESS
#include <os2.h>
#include <iapp.hpp>
#include <istattxt.hpp>
#include <iframe.hpp>
#include <os2.h>
#include <icconst.h>
void main()
{
IFrameWindow frame("Main Window");
IStaticText text(IC_FRAME_CLIENT_ID, &frame, &frame);
text
.setText("Hello, World!")
.setAlignment(IStaticText::centerCenter);
frame
.setClient(&text)
.setFocus()
.show();
// Close Down App - end of trace run
DosExit(EXIT_PROCESS,0);
// Since we exit, the message loop never starts.
IApplication::current().run();
}