On Wed, 03 Feb 2010, smu johnson wrote:
Hi,
> FUNC MAIN()
> ? set(24) // Clipper is "", Harbour is LPT1
> set printer to ("junk.txt")
> ? set(24) // junk.txt
> set printer to
> ? set(24) // s/b "", but set to LPT1 again
> RETURN
It's platform dependent issue.
In DOS programs handler 5 is open for each application and points
to "PRN" device.
This is only DOS behavior which does not exist in all other OS-es
which do not give process any special 5 handler and you have to
open connection to given device. In Windows builds we explicitly
set device name to "LPT1" but in *nix builds is "|lpr" what means
PIPE to lpr process.
best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour