To test Printer Status Repeatly using Borland C/C++ 5.02

J

Jim Warner

I am having problems using Borland 5.02 C/C++ for testing printer
status repeatly. I wish to use my printer to detect off-line, removing
paper, and so on with my software. I have tried using bio_print,
bios_printer, and bio_serialcom but my program cannot detect it. I am
using Windows XP and I have read that these functions can't be used
since Windows 98 operating system will not support the functions. Can
you help show a simple program which can just show the printer status
without using serial port to write too.
 
J

Joona I Palaste

Jim Warner said:
I am having problems using Borland 5.02 C/C++ for testing printer
status repeatly. I wish to use my printer to detect off-line, removing
paper, and so on with my software. I have tried using bio_print,
bios_printer, and bio_serialcom but my program cannot detect it. I am
using Windows XP and I have read that these functions can't be used
since Windows 98 operating system will not support the functions. Can
you help show a simple program which can just show the printer status
without using serial port to write too.

This has nothing to do with the C language. Please ask in a Borland
newsgroup.

--
/-- Joona Palaste ([email protected]) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"The large yellow ships hung in the sky in exactly the same way that bricks
don't."
- Douglas Adams
 
J

jacob navia

It would be a good idea to realize that you are not
under DOS any moe. It is over 13 years that DOS
disappeared.

Knowing the status of the printer is difficult since if
print spooling is turned ON, the "printer" is always
ready. Besides, the printer can be a network printer
and in that case is difficult to query the printer status.

References:
Printing an,d Print Spooler Functions.
Microsoft Platform SDK
 
K

Keith Thompson

jacob navia said:
It would be a good idea to realize that you are not
under DOS any moe. It is over 13 years that DOS
disappeared.
[...]

<WAY_OT>
DOS has not disappeared. Discuss elsewhere, please.
</WAY_OT>
 
J

Jack Klein

It would be a good idea to realize that you are not
under DOS any moe. It is over 13 years that DOS
disappeared.

Knowing the status of the printer is difficult since if
print spooling is turned ON, the "printer" is always
ready. Besides, the printer can be a network printer
and in that case is difficult to query the printer status.

References:
Printing an,d Print Spooler Functions.
Microsoft Platform SDK

<off-topic>

Amazingly inaccurate. MS-DOS was still shipped with, and required by,
every copy of Windows ME. Was ME discontinued 13 years ago?

</off-topic>
 
K

Kenny McCormack

<off-topic>

Amazingly inaccurate. MS-DOS was still shipped with, and required by,
every copy of Windows ME. Was ME discontinued 13 years ago?

</off-topic>

(Still OT, of course)

I think Jacob just typo'd - and wrote 13 when he meant 3.

An argument (albeit a weak one) can be made that DOS ended in 2001, which
is about when MS stopped shipping ME.
 
F

Flash Gordon

On Mon, 16 Aug 2004 15:15:17 GMT
(Still OT, of course)

I think Jacob just typo'd - and wrote 13 when he meant 3.

An argument (albeit a weak one) can be made that DOS ended in 2001,
which is about when MS stopped shipping ME.

Still OT, but they have not completely stopped shipping it. As an MSDN
subscriber (through my company) I have a DVD which includes ME and 98
and can even download DOS 5 and Win3.1. They just don't ship it for
retail.
 
C

CBFalconer

Flash said:
(e-mail address removed) (Kenny McCormack) wrote:
.... snip ...

Still OT, but they have not completely stopped shipping it. As an
MSDN subscriber (through my company) I have a DVD which includes
ME and 98 and can even download DOS 5 and Win3.1. They just don't
ship it for retail.

And it is not hard to get FreeDos and DRDos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,146
Messages
2,570,831
Members
47,374
Latest member
anuragag27

Latest Threads

Top