/***********************************************************************/ /* Open Visualization Data Explorer */ /* (C) Copyright IBM Corp. 1989,1999 */ /* ALL RIGHTS RESERVED */ /* This code licensed under the */ /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ /***********************************************************************/ #include #include "defines.h" #include "TutorApplication.h" #ifdef DXD_WINSOCK_SOCKETS //SMH must initialize Win Sockets #define _WINSPOOL_ //SMH prevent name clash from uneeded included inlcudes #include #endif #ifdef DXD_IBM_OS2_SOCKETS #include #endif #ifdef DXD_WIN #include #include /* Motif Toolkit */ #include /* Mrm */ #ifdef _X86_ #include /* HCL - exit prototype */ #include /* HCL - HCLXmInit prototype */ #endif #endif // // Used by the assert macro. // const char *AssertMsgString = "Internal error detected at \"%s\":%d.\n"; void main(unsigned int argc, char** argv) { #ifdef DXD_WIN #ifdef _X86_ HCLXmInit(); #endif #endif #ifdef DXD_WINSOCK_SOCKETS //SMH initialize Win Sockets { WSADATA *wsadata = new WSADATA; WSAStartup(0x0100,wsadata); delete wsadata; } #endif #ifdef DXD_IBM_OS2_SOCKETS sock_init(); #endif // // Initialize Xt Intrinsics, build all the windows, and enter event loop. // Note that all the windows are created elsewhere (App.C), // and managed in the application initialization routine. // if (NOT theApplication) { theApplication = new TutorApplication("DXTutor"); } if (!theApplication->initialize(&argc, argv)) exit(1); theApplication->handleEvents(); delete theApplication; #ifdef DXD_WINSOCK_SOCKETS //SMH cleanup Win Sockets WSACleanup(); #endif exit(0); }