home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 6
/
The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso
/
038
/
dho_9a.zip
/
EXAMPLE2.CC
< prev
next >
Wrap
Text File
|
1994-12-06
|
940b
|
41 lines
// Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
// All rights reserved
/*
This code fragment shows how to set up a simple demo program
which will uses a main window. Notice the use of the window class member
getClassName, which is used in the automation of regisration
with Presentation Manager.
In all, about 10 lines of additional code on top of
the Developer Helper Object set which will pop up
a main window, which has the CUA Open File and
Save File Dialogs -- notice that Exit does not work.
*/
#include "mainwin.h"
#include"applicat.h"
class TTestApp : public TApplication
{
public:
TTestApp(ULONG x): TApplication ( x){;};
virtual void CreateMainWindow(){ MainWin = new TMainWindow(
"FileDialog Tester", DefaultFlags, 100);}
};
INT main(void)
{
TTestApp mw(100);
mw.init();
mw.run();
}