Discussion:
PB DOS can't LRINT in my Win XP
(too old to reply)
m***@hotmail.com.CUT
2006-07-26 18:51:36 UTC
Permalink
This has become bizarre.
I've posted in the past few days questions abou some PB DOS 3.2
programs which ran on my Win ME machine but won't run on
a new Win XP Pro machine.
After a few hours of trial and error stuff, I discovered that
if I change all "LPRINT" commands to "PRINT" commands
the program works perfectly!
With "LPTINT" commands when I "RUN" the DOD windw goes blank
]and nothing happens and the machine is locked up.
Can anyone help me understand this and how I can correct it?
I really need to send stuff to the printer!
Jonathan Berry
2006-07-27 02:16:05 UTC
Permalink
If it doesn't require keyboard input, you might consider
a) making all output to the screen, then when you want
it on paper, redirect the output to a file
myprog.exe > file.txt
at the prompt and then
b) print the file using your text editor.

Or
a) replacing the Print statements with Print # ...

I feel confident that somebody will have a more elegant
solution!
Post by m***@hotmail.com.CUT
This has become bizarre.
I've posted in the past few days questions abou some PB DOS 3.2
programs which ran on my Win ME machine but won't run on
a new Win XP Pro machine.
After a few hours of trial and error stuff, I discovered that
if I change all "LPRINT" commands to "PRINT" commands
the program works perfectly!
With "LPTINT" commands when I "RUN" the DOD windw goes blank
]and nothing happens and the machine is locked up.
Can anyone help me understand this and how I can correct it?
I really need to send stuff to the printer!
--
happy
Jonathan Berry and Erika http://members.shaw.ca/berry5868/fun.htm
m***@hotmail.com.CUT
2006-07-27 14:29:41 UTC
Permalink
Post by Jonathan Berry
If it doesn't require keyboard input, you might consider
a) making all output to the screen, then when you want
it on paper, redirect the output to a file
myprog.exe > file.txt
at the prompt and then
b) print the file using your text editor.
Or
a) replacing the Print statements with Print # ...
I feel confident that somebody will have a more elegant
solution!
LPRINT is a commonand frequently used Basic language command.
If we wanted no paper copy of the output we'd use "PRINT".
"PRINT#" is for writing to a file.
And, "LPRINT" has worked in all previous versions of Windows
(including Win ME which I also have). For some bizarre reason
no basic program with a "LPRINT"command works on my
XP-Pro machine.
Post by Jonathan Berry
Post by m***@hotmail.com.CUT
This has become bizarre.
I've posted in the past few days questions abou some PB DOS 3.2
programs which ran on my Win ME machine but won't run on
a new Win XP Pro machine.
After a few hours of trial and error stuff, I discovered that
if I change all "LPRINT" commands to "PRINT" commands
the program works perfectly!
With "LPTINT" commands when I "RUN" the DOD windw goes blank
]and nothing happens and the machine is locked up.
Can anyone help me understand this and how I can correct it?
I really need to send stuff to the printer!
earthing
2006-07-27 16:13:11 UTC
Permalink
Post by m***@hotmail.com.CUT
Post by Jonathan Berry
If it doesn't require keyboard input, you might consider
a) making all output to the screen, then when you want
it on paper, redirect the output to a file
myprog.exe > file.txt
at the prompt and then
b) print the file using your text editor.
Or
a) replacing the Print statements with Print # ...
I feel confident that somebody will have a more elegant
solution!
LPRINT is a commonand frequently used Basic language command.
If we wanted no paper copy of the output we'd use "PRINT".
"PRINT#" is for writing to a file.
And, "LPRINT" has worked in all previous versions of Windows
(including Win ME which I also have). For some bizarre reason
no basic program with a "LPRINT"command works on my
XP-Pro machine.
Post by Jonathan Berry
Post by m***@hotmail.com.CUT
This has become bizarre.
I've posted in the past few days questions abou some PB DOS 3.2
programs which ran on my Win ME machine but won't run on
a new Win XP Pro machine.
After a few hours of trial and error stuff, I discovered that
if I change all "LPRINT" commands to "PRINT" commands
the program works perfectly!
With "LPTINT" commands when I "RUN" the DOD windw goes blank
]and nothing happens and the machine is locked up.
Can anyone help me understand this and how I can correct it?
I really need to send stuff to the printer!
is the printer turned on and connected to the computer?
is the printer software installed?
are you using the same printer on both machines?

I have a printer that has both usb and the older serial
printer cable connections. if I use the usb cable to connect
the printer to the computer the printer does not work in dos
but if I use the serial cable it works just fine.
could this be the problem as DOS might be looking for the
printer on the LTP1 port?
Dominic Sexton
2006-07-27 14:57:41 UTC
Permalink
Post by m***@hotmail.com.CUT
LPRINT is a commonand frequently used Basic language command.
If we wanted no paper copy of the output we'd use "PRINT".
"PRINT#" is for writing to a file.
And, "LPRINT" has worked in all previous versions of Windows
(including Win ME which I also have). For some bizarre reason
no basic program with a "LPRINT"command works on my
XP-Pro machine.
It has been a long time since I printed from DOS but do you have to
specify the port it prints to and does it always have to be a LPT / COM
port? If so you need to ensure you are send it to the same port as the
printer is on.

This may be a function of the printer driver for the default printer
rather than Win XP itself. If you have a printer that works on Win ME
with your program you may find it works on the XP machine too if the
driver is similar enough...
--
Dominic Sexton
m***@hotmail.com.CUT
2006-07-27 18:30:33 UTC
Permalink
The printer is properly l installed ---windows programs use it fine.
The printer is installed on LPT 1. It's an Epson ink jet
But, BASIC programs I've written (with LPRINT command
in them) and the Windows-included DOS Editor can't print.
When asked, the DOS window goes blank and everything locks up.
earthing
2006-07-27 20:22:50 UTC
Permalink
Post by m***@hotmail.com.CUT
The printer is properly l installed ---windows programs use it fine.
The printer is installed on LPT 1. It's an Epson ink jet
But, BASIC programs I've written (with LPRINT command
in them) and the Windows-included DOS Editor can't print.
When asked, the DOS window goes blank and everything locks up.
when reading a message and you want to post a reply to that message
it is better to do a follow-up to that message so that the previous
message is included in the follow-up message so people can know
what you are talking about, instead of creating a new message.

Loading...