home *** CD-ROM | disk | FTP | other *** search
- Unit OvrThre;
- { This is the last unit in the string of several demos. It }
- { simply interfaces a single procedure, which is called from }
- { the main program. When called, it will make a call to the }
- { procedure in unit OvrTwo. It serves no useful purpose }
- { except to introduce the user to an overlayed application. }
-
- {$O+,F+} { Instruct the compiler this unit can be overlayed }
-
- Interface
-
- Uses
- Crt, OvrOne, OvrTwo; { Link in the necessary units. }
-
- Procedure Driver;
-
- Implementation
-
- Procedure Driver;
- { This is the driving procedure for this demo program. It is }
- { called from the main program, and will call each of the }
- { routines in turn. }
-
- Var
- Ch : Char;
-
- Begin
- OvrTwo1; { Call the first overlay }
- Writeln( 'Returned back to OvrThre.' );
- Writeln( 'Now calling OvrOne directly...' );
- Proc1; { Now call it directly instead }
- Writeln( 'Back in OvrThre.' );
- Writeln( 'Press a key to return to main program.....' );
- Ch := Readkey;
- End;
-
- End.
-
-