My dad is using an older DOS DPMI program for acounting.
Until recently it worked fine under Win ME.
On his new PC he is running XP prof. and the software as such works fine.
The problem comes, when he wants to print something. At times it works fine and at other times the Windows spooler crashes, leaving some spool files behind.
The printer used is a Brother HL-5040, but inside the DOS app. it is set up as a HP Laserjet 4.
Under ME it might have worked, because it allows direct hardware access to tle LPT1 port, which XP has sealed off.
But why does it work on and off now?
And how can I make a stable system that works in both accounting and normal Windows?
I have quite some Delphi programming experience so work-arounds like setting the acounting app. to export spool files instead, capturing them in a Delphi app, sending it to the printer, and finally deleting the file, could be a solution.
But are ther better ones?
The newest additions to the above:
I have tried installing a LaserJet 4 driver: No change. (Works fine i8n Windows and on/off in DOS DPMI)
I have tried changing the interface in the DOS app. to using no esc sequences: No change
It looks like the first few minutes after Windows start, I can print OK from within the app.
After that or if I print from a Windows app. first, forget it! :-(
Until recently it worked fine under Win ME.
On his new PC he is running XP prof. and the software as such works fine.
The problem comes, when he wants to print something. At times it works fine and at other times the Windows spooler crashes, leaving some spool files behind.
The printer used is a Brother HL-5040, but inside the DOS app. it is set up as a HP Laserjet 4.
Under ME it might have worked, because it allows direct hardware access to tle LPT1 port, which XP has sealed off.
But why does it work on and off now?
And how can I make a stable system that works in both accounting and normal Windows?
I have quite some Delphi programming experience so work-arounds like setting the acounting app. to export spool files instead, capturing them in a Delphi app, sending it to the printer, and finally deleting the file, could be a solution.
But are ther better ones?
The newest additions to the above:
I have tried installing a LaserJet 4 driver: No change. (Works fine i8n Windows and on/off in DOS DPMI)
I have tried changing the interface in the DOS app. to using no esc sequences: No change
It looks like the first few minutes after Windows start, I can print OK from within the app.
After that or if I print from a Windows app. first, forget it! :-(