By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,712 Members | 1,390 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,712 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Nov 14 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Jim Warner <ji******@i2k.com> scribbled the following:
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 (pa*****@cc.helsinki.fi) ------------- 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
Nov 14 '05 #2

P: n/a
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

Nov 14 '05 #3

P: n/a
"jacob navia" <ja***@jacob.remcomp.fr> writes:
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>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #4

P: n/a
On Sun, 15 Aug 2004 14:44:00 +0200, "jacob navia"
<ja***@jacob.remcomp.fr> wrote in comp.lang.c:
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>

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #5

P: n/a
In article <1o********************************@4ax.com>,
Jack Klein <ja*******@spamcop.net> wrote:
On Sun, 15 Aug 2004 14:44:00 +0200, "jacob navia"
<ja***@jacob.remcomp.fr> wrote in comp.lang.c:
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>


(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.

Nov 14 '05 #6

P: n/a
On Mon, 16 Aug 2004 15:15:17 GMT
ga*****@yin.interaccess.com (Kenny McCormack) wrote:
In article <1o********************************@4ax.com>,
Jack Klein <ja*******@spamcop.net> wrote:
On Sun, 15 Aug 2004 14:44:00 +0200, "jacob navia"
<ja***@jacob.remcomp.fr> wrote in comp.lang.c:
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>


(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.
--
Flash Gordon
Sometimes I think shooting would be far too good for some people.
Although my email address says spam, it is real and I read it.
Nov 14 '05 #7

P: n/a
Flash Gordon wrote:
ga*****@yin.interaccess.com (Kenny McCormack) wrote:

.... snip ...

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.


And it is not hard to get FreeDos and DRDos

--
"The most amazing achievement of the computer software industry
is its continuing cancellation of the steady and staggering
gains made by the computer hardware industry..." - Petroski
Nov 14 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.