home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
270.img
/
FORUM25C.ZIP
/
EXITPROC.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-12-27
|
1KB
|
36 lines
Save_exit : POINTER;
{$F+}
Procedure Error_handler;
VAR Error_str : Lstr;
Begin
Sound(2000);
Delay(250);
NoSOund;
ExitProc := Save_exit;
TextColor(WHITE);
Writeln(USR,ExitCode);
Writeln(USR,Ext_code);
If ExitCode = e_Extended_code THEN
Begin
Case Ext_code OF
-1 : Writeln(USR,'Overlay manager error');
-2 : Begin
Writeln(USR,'Overlay file not found');
End;
1 : Begin
writeln (usr,'The modem driver is not installed! Please run the',
'program'^M^J^M^J' MODEMDRV.COM'^M^J^M^J,
'and run Forum-PC again.');
ExitCode := 2;
End;
2 : Begin
writeln (usr,^M^J'Fatal error: You MUST put the command',
^M^J^J' FILES=30',
^M^J^J'in your CONFIG.SYS file on the disk from which you boot.',
^M^J^J'Note: If you have been modifying Forum-PC, then you may',
^M^J' be leaving a file open.');;
End;
End;
End;
End;