Re: [Harbour] Harbour / Clipper Incompatibility Issue: SET() w/ p.o.c.

2010-02-04 Thread Przemysław Czerpak
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)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


[Harbour] Harbour / Clipper Incompatibility Issue: SET() w/ p.o.c.

2010-02-03 Thread smu johnson
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

-- 
smu johnson smujohn...@gmail.com
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] Harbour / Clipper Incompatibility Issue: SET() w/ p.o.c.

2010-02-03 Thread Xavi

smu,


   set printer to
   ? set(24) // s/b , but set to LPT1 again


Ok but it's also the default printer.
Printer connected to port LPT1 in WoW and NTVDM DOS PC emulator under Windows.

try .-

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

   // set printer to LPT4
   // set printer to
   set printer on
   ? Printed on default printer.


RETURN

--
Xavi

El 03/02/2010 23:39, smu johnson escribió:

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

--
smu johnson smujohn...@gmail.com mailto:smujohn...@gmail.com


___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] Harbour / Clipper Incompatibility Issue: SET() w/ p.o.c.

2010-02-03 Thread smu johnson
Well the program compiled in both Clipper and Harbour behaves differently on
the same machine, same environment, in this case, Vista 32-bit.  Hence an
incompatibility.

On Wed, Feb 3, 2010 at 7:53 PM, Xavi jara...@gmail.com wrote:

 smu,


set printer to
   ? set(24) // s/b , but set to LPT1 again


 Ok but it's also the default printer.
 Printer connected to port LPT1 in WoW and NTVDM DOS PC emulator under
 Windows.

 try .-


 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

   // set printer to LPT4
   // set printer to
   set printer on
   ? Printed on default printer.


 RETURN

 --
 Xavi

 El 03/02/2010 23:39, smu johnson escribió:

 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

 --
 smu johnson smujohn...@gmail.com mailto:smujohn...@gmail.com

  ___
 Harbour mailing list (attachment size limit: 40KB)
 Harbour@harbour-project.org
 http://lists.harbour-project.org/mailman/listinfo/harbour




-- 
smu johnson smujohn...@gmail.com
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] Harbour / Clipper Incompatibility Issue: SET() w/ p.o.c.

2010-02-03 Thread Xavi

Well the program compiled in both Clipper and Harbour behaves
differently on the same machine, same environment, in this case, Vista
32-bit.  Hence an incompatibility.


I think that could be changed to  by default but maybe it's an advantage if 
you think that Harbour compile for other OS too.

--
Xavi

El 04/02/2010 5:15, smu johnson escribió:

Well the program compiled in both Clipper and Harbour behaves
differently on the same machine, same environment, in this case, Vista
32-bit.  Hence an incompatibility.

On Wed, Feb 3, 2010 at 7:53 PM, Xavi jara...@gmail.com
mailto:jara...@gmail.com wrote:

smu,


   set printer to
   ? set(24) // s/b , but set to LPT1 again


Ok but it's also the default printer.
Printer connected to port LPT1 in WoW and NTVDM DOS PC emulator
under Windows.

try .-


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

   // set printer to LPT4
   // set printer to
   set printer on
   ? Printed on default printer.


RETURN

--
Xavi

El 03/02/2010 23:39, smu johnson escribió:

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

--
smu johnson smujohn...@gmail.com mailto:smujohn...@gmail.com
mailto:smujohn...@gmail.com mailto:smujohn...@gmail.com

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org mailto:Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour




--
smu johnson smujohn...@gmail.com mailto:smujohn...@gmail.com


___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour