home *** CD-ROM | disk | FTP | other *** search
- {======================================================================}
- { Sample program in Pascal language to show files in CAP format. }
- { By: Jeng Shun Huo (Fire) & Kuo Shiang Shiang (Djohan) }
- { }
- { Compiler : Turbo Pascal V5.5 or later }
- { Unit used : CAP.TPU }
- {======================================================================}
-
- uses Cap60, Crt;
-
- var error_code : integer;
-
- begin
- Show_CAP('SAMPLE.CAP', error_code); { Show 'SAMPLE.CAP' }
- case error_code of
- 0 : begin
- repeat until keypressed; { If no error, wait for a key }
- Set_Screen_Mode(3) { Switch back to color text mode }
- end;
- 1 : writeln('ERROR: The image file is not in CAP format!', chr(7));
- 2 : writeln('ERROR: File I/O error or file not found!', chr(7));
- 3 : writeln('ERROR: Invalid video card for this file!', chr(7));
- 4 : writeln('ERROR: This file can''t be shown in Chinese system!', chr(7))
- end
- end.
-
-