home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / mess1 / message.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-31  |  1.2 KB  |  40 lines

  1. //========================================================================
  2. //  The following example routines have been provided by the Technical
  3. //  Support staff at Borland International.  They are provided as a
  4. //  courtesy and not as part of a Borland product, and as such, are
  5. //  provided without the assurance of technical support or any specific
  6. //  guarantees.
  7. //========================================================================
  8. //  Turbo Vision - Example of message passing
  9. //
  10. //------------------------------------------------------------------------
  11. //
  12. // message.cpp:  A first look at message passing via evBroadcast.
  13. //
  14. //========================================================================
  15.  
  16.  
  17. #include <stdlib.h>
  18. #include "myapp.h"
  19.  
  20.  
  21. //
  22. // main:
  23. //      Here we declare an instance of the application object and call the
  24. //      run() member function to start of the program.  Usually, this will be
  25. //      all that is done here.  (Certain other initializations, like getting
  26. //      EMS memory for the overlay manager would also go here.)
  27. //
  28.  
  29. int main()
  30. {
  31.     randomize();
  32.  
  33.     TMyApplication myApp;
  34.  
  35.     myApp.run();
  36.  
  37.     return( 0 );
  38. }
  39.  
  40.