home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
pstn.zip
/
zip
/
vbmain.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-04
|
2KB
|
57 lines
/*******************************************************************************
* FILE NAME: vbmain.cpp *
* *
* DESCRIPTION: *
* Main program stub for class: *
* WinMenu *
* ---------------------------------------------------------------------------- *
* Warning: This file was generated by the VisualAge C++ Visual Builder. *
* Modifications to this source file will be lost when the part is regenerated. *
*******************************************************************************/
#ifndef _IWINDOW_
#include <iwindow.hpp>
#endif
#ifndef _IAPP_
#include <iapp.hpp>
#endif
#ifndef _IMSGBOX_
#include <imsgbox.hpp>
#endif
#ifndef _WINMENU_
#include "WinMenu.hpp"
#endif
//------------------------------------------------------------------------------
// main
//------------------------------------------------------------------------------
int main(int argc, char ** argv)
{
IApplication::current().setArgs(argc, argv);
WinMenu *iPart;
IMessageBox::Response resp = IMessageBox::unknown;
do {
try {
iPart = new WinMenu();
iPart->initializePart();
}
catch (IException& exc) {
resp = IMessageBox(IWindow::desktopWindow()).show(exc);
}
}
while (resp == IMessageBox::retry);
if (resp == IMessageBox::cancel) IApplication::current().exit();
iPart->setAutoDeleteObject();
iPart->show();
IApplication::current().run();
return 0;
} //end main