home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Comms Spectacular / MacTCP / TurboTCP / MiniTelnet.source / MiniTelnet.cp < prev    next >
Encoding:
Text File  |  1993-12-10  |  1.4 KB  |  82 lines  |  [TEXT/KAHL]

  1. /*
  2. ** MiniTelnet.cp
  3. **
  4. **    MiniTelnet application
  5. **    Main application entry
  6. **
  7. **    Copyright © 1993, FrostByte Design / Eric Scouten
  8. **
  9. */
  10.  
  11.  
  12. #if __option(profile)
  13.     #include <profile.h>
  14.     #include <stdio.h>
  15. #endif
  16.  
  17. #include <CArrowPopupPane.h>
  18. #include <CDialogText.h>
  19. #include <CIconPane.h>
  20. #include <CPopupMenu.h>
  21. #include <CPopupPane.h>
  22. #include <CRadioControl.h>
  23. #include <CRadioGroupPane.h>
  24. #include <CStdPopupPane.h>
  25.  
  26. #include "CMiniTelnetApp.h"
  27.  
  28.  
  29. /*______________________________________________________________________
  30. **
  31. ** main ()
  32. **
  33. **    The big one. Set up the OOP stuff and let it go.
  34. **
  35. */
  36.  
  37. void main ()
  38.  
  39. {
  40.     CMiniTelnetApp    *theMiniTelnetApp;
  41.     Boolean        alwaysFalse = FALSE;
  42.     CObject        *blankObject;
  43.  
  44.  
  45.     // ensure that all classes needed are available
  46.  
  47.     if (alwaysFalse) {
  48.         member (blankObject, CArrowPopupPane);
  49.         member (blankObject, CDialogText);
  50.         member (blankObject, CIconPane);
  51.         member (blankObject, CPopupMenu);
  52.         member (blankObject, CPopupPane);
  53.         member (blankObject, CRadioControl);
  54.         member (blankObject, CRadioGroupPane);
  55.         member (blankObject, CStdPopupPane);
  56.     }
  57.  
  58.  
  59.     // start the profiler (if desired)
  60.  
  61.     #if __option(profile)
  62.         InitProfile(1000,200);
  63.         freopen("profiler report", "w", stdout);
  64.     #endif
  65.  
  66.  
  67.     // run the program
  68.     
  69.     theMiniTelnetApp = new (CMiniTelnetApp);
  70.     theMiniTelnetApp->IMiniTelnetApp();
  71.     theMiniTelnetApp->Run();
  72.  
  73.  
  74.     // exit
  75.     
  76.     #if __option(profile)
  77.         _trace = _profile = 0;
  78.         DumpProfile();
  79.     #endif
  80.     theMiniTelnetApp->Exit();
  81. }
  82.