home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
-
- #define Uses_TApplication
-
- #include "tvtools.h"
- #include <conio.h>
- #include <stdlib.h>
- #include <process.h>
- #include <float.h>
-
-
-
- void appSystem( char *cmd )
- {
- TApplication::application->suspend();
- clrscr();
- if ( cmd ) system( cmd );
- else { // Go to DOS and come back
- char *comspec = getenv("COMSPEC");
- if ( ! comspec ) comspec = "COMMAND";
- spawnlpe( P_WAIT, comspec, comspec, "/e:2000", NULL, environ );
- }
- _fpreset(); // To reset math co-processor
- TApplication::application->resume();
- TApplication::application->redraw();
- }
-