473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
7 4256
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
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
"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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel Iwan | last post by:
Hello everyone! I have a problem with using TCanvas Printer and network printer HP LaserJet It print just first page and throws blank all the rest. WinNT with Borland Builder 5. All works...
0
by: Jim Warner | last post by:
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...
0
by: Gordon Truslove | last post by:
I've been trying to get the printer status using GetPrinter and Printer_Info_2 I'm getting closer, but it still fails. Error 122 - The data area passed to a system call is too small. ...
3
by: Gordon Truslove | last post by:
I've been trying to get the printer status using GetPrinter and Printer_Info_2 I'm getting closer, but it still fails. Error 122 - The data area passed to a system call is too small....
7
by: trint | last post by:
I am told by an experienced c#.net programmer that it is not possible to get the code to get a printers status. I've been hammering on this for a week and have combed through hp's web sites and...
6
by: Pipo | last post by:
Hi, Does anyone know how I can read out the printer status? I want to sent a bulk of documents to the printer (or 1 by 1) but if something goes wrong e.g. out of paper, cartridge empty, tray...
2
by: TARUN | last post by:
Hello all, Please help and suggest the code to get the printer status over the network. for Example, i have an string "\\\\os1\\PtName" where os1 is the system name and PtName is the printer...
9
by: id10t error | last post by:
Hello, I am going to be using a Symbol WT4090 to scan items. I need to printer a tag from the Zebra ql320 plus. I am trying to do this is Visual basic 2005. Does anyone know and good site to...
1
by: Steve | last post by:
Hi All I am using vb.net 2005 in a windows forms application I send data to the selected windows printer using a PrintDocument object Is there any way to detect if the Printer is not...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.