Works in V3.94, fails in V4.00. Why?
Posted: Fri Jul 28, 2006 7:49 pm
The following code works perfectly in Vs 3.94 to open and allow writing
to the parallel port (Win98SE, WinXP).
but the code converted to PB4.00 fails.
Why?
This is causing serious problems converting to PB4. I create PCL code for
laserjet printers and send them directly to the printer in V3.94. The code
has worked perfectly with no data loss for thousands and thousands of
pages.
But, in PB4 the printer will not open! Oddly, COM!, COM2, COM3 all work fine. LPT1, LPT2, LPT3 all fail.
Am I doing something wrong? Is there a work-around? Or is this a PB4
bug?
Thanks,
Terry
to the parallel port (Win98SE, WinXP).
Code: Select all
If OpenFile(8,"LPT1")
WriteString("Testing" + Chr(12))
CloseFile(8)
Else
MessageRequester("Debug","Can't open printer device",0)
EndIf
Code: Select all
If OpenFile(8,"LPT1")
WriteString(8,"Testing" + Chr(12))
CloseFile(8)
Else
MessageRequester("Debug","Can't open printer device",0)
EndIf
This is causing serious problems converting to PB4. I create PCL code for
laserjet printers and send them directly to the printer in V3.94. The code
has worked perfectly with no data loss for thousands and thousands of
pages.
But, in PB4 the printer will not open! Oddly, COM!, COM2, COM3 all work fine. LPT1, LPT2, LPT3 all fail.
Am I doing something wrong? Is there a work-around? Or is this a PB4
bug?
Thanks,
Terry