[Harbour-users] Re: Messages not getting to list?

A.Martínez alcisoft at arrakis.es
Wed Mar 24 14:13:54 EDT 2010


Massimo,

Ok, but and if computer has not LPT1 port ?

Perhaps, at least for Windows, when there isn't LPT1 port default device
should GetDefaultPrinter()..
Perhaps, too, we should can set device default for SET PRINTER TO...

 Thank you very much !

regards



Massimo Belgrano escribió en mensaje
<609353e71003240808p5a70b06du65e675af56341d96 at mail.gmail.com>...
PRN and LPT1 are device in their os

follow is a clarification on developer mailing list
> 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



2010/3/24 Richard Acosta <eyelagui at gmail.com>:
> I have sent in the past 3 or 4 days a couple of messages but i dont see
them
> on the list, neither i had anu kind of answer.
>
> ¿Anything wrong?
>
> I'm writing from this account to this recipient:
> harbour-users at harbour-project.org.
>
>
>
> El 24/03/2010 10:05 a.m., A.Martínez escribió:
>>
>> Hi,
>>
>> This sample shows:
>> Harbour 2.0.0 - LPT1
>> Clipper and xHarbour 1.0.0 - PRN
>>
>> Why is not mismatching ?
>>
>>
>> FUNCTION Main()
>>
>> ? Set(24) // SET PRINTER TO command
>>
>> RETURN NIL
>>
>>
>>
>>
>>
>> _______________________________________________
>> Harbour-users mailing list (attachment size limit: 40KB)
>> Harbour-users at harbour-project.org
>> http://lists.harbour-project.org/mailman/listinfo/harbour-users
>>
>>
>
> _______________________________________________
> Harbour-users mailing list (attachment size limit: 40KB)
> Harbour-users at harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour-users
>



--
Massimo Belgrano





More information about the Harbour-users mailing list