home *** CD-ROM | disk | FTP | other *** search
- program prntsamp;
- {sample program using PRNTPROT}
- uses prntprot;
-
- var t:text;
-
- begin
- writeln('trying to write to LPT1');
- writeln(lst,'hello from LPT1');
- AssignPrt(t,LPT2);
- writeln('trying to write to LPT2');
- writeln(t,'hello from LPT2');
- writeln('IsDeactivated (LPT1)=',IsDeactivated(lst));
- writeln('IsDeactivated (LPT2)=',IsDeactivated(t));
- writeln(lst,'goodbye from LPT1');
- writeln(t,'goodbye from LPT2');
- end.