home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / TUTORIAL / EXAMPLE1.CC < prev    next >
C/C++ Source or Header  |  1995-08-30  |  1KB  |  38 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: example1.cc 1.1 1995/08/30 01:16:39 teb Exp $ */
  8.  
  9. /*******************************************
  10.  *   Example1.cc or, "Your very own        *
  11.  *   Presentation Manager App with         *
  12.  *   a mere 2 function calls!"             *
  13.  *                                         *
  14.  *   This is the basis of a DHO based      *
  15.  *   OS/2 application.  The main event     *
  16.  *   loop constructs an application object *
  17.  *   and instructs it to begin it's event  *
  18.  *   loop.                                 *
  19.  *******************************************/
  20.  
  21. //DHO application object header file
  22. #include<applicat.h>
  23.  
  24.  
  25. #define kAppId 100
  26.  
  27.  
  28. //=========================================
  29. //  program entry point
  30. INT main(void)
  31. {
  32.    TApplication app(kAppId);
  33.  
  34.    app.init();     // initialize object
  35.    app.run();      // begin event loop          
  36.  
  37.    return 0;
  38. }