home *** CD-ROM | disk | FTP | other *** search
- //========================================================================
- // The following example routines have been provided by the Technical
- // Support staff at Borland International. They are provided as a
- // courtesy and not as part of a Borland product, and as such, are
- // provided without the assurance of technical support or any specific
- // guarantees.
- //========================================================================
- //
- // stream.cpp
- //
- // Note: this project uses gadgets.cpp and gadgets.h which are shipped
- // with Turbo Vision and can be found in the tvision\demos directory.
- //
-
-
- #define Uses_TApplication
- #define Uses_TMenuBar
- #define Uses_TRect
- #define Uses_TStatusLine
- #define Uses_TEvent
- #define Uses_fpstream
- #include <tv.h>
-
-
- #include <stdlib.h> // For randomize() function
-
- #include "gadgets.h"
- #include "myapp.h" // Application class declaration.
-
-
- //
- // main:
- // Here we declare an instance of the application object and call the
- // run() member function to start of the program. Usually, this will
- // be all that is done here.
- //
-
- int main()
- {
- randomize(); // Start up random number generator.
-
- TMyApp myApp;
-
- myApp.run();
-
- return( 0 );
- }
-