home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / tutorial / tvguid01.cpp next >
C/C++ Source or Header  |  1998-01-19  |  1KB  |  41 lines

  1. /*---------------------------------------------------------*/
  2. /*                                                         */
  3. /*   Turbo Vision 1.0                                      */
  4. /*   TVGUID01 Demo Source File                             */
  5. /*   Copyright (c) 1991 by Borland International           */
  6. /*                                                         */
  7. /*---------------------------------------------------------*/
  8.  
  9. #define Uses_TApplication
  10. #include <tvision/tv.h>
  11.  
  12. // tv.h will pull in the headers needed for TApplication and its
  13. // base classes. Add a #define Uses_Txxx statement (before the
  14. // #include <tv.h> line) for each Turbo Vision class used in
  15. // your program. Explicit or implied duplications are harmless:
  16. // for example, #define Uses_TProgram would be redundant here,
  17. // but harmless.
  18.  
  19. class TMyApp : public TApplication
  20. {
  21.  
  22. public:
  23.     TMyApp();
  24.  
  25. };
  26.  
  27. TMyApp::TMyApp() :
  28.     TProgInit( &TMyApp::initStatusLine,
  29.                &TMyApp::initMenuBar,
  30.                &TMyApp::initDeskTop
  31.              )
  32. {
  33. }
  34.  
  35. int main()
  36. {
  37.     TMyApp myApp;
  38.     myApp.run();
  39.     return 0;
  40. }
  41.