473,791 Members | 2,947 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4303
Jim Warner <ji******@i2k.c om> 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.hel sinki.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.re mcomp.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_Keit h) 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.re mcomp.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.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #5
In article <1o************ *************** *****@4ax.com>,
Jack Klein <ja*******@spam cop.net> wrote:
On Sun, 15 Aug 2004 14:44:00 +0200, "jacob navia"
<ja***@jacob.r emcomp.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.int eraccess.com (Kenny McCormack) wrote:
In article <1o************ *************** *****@4ax.com>,
Jack Klein <ja*******@spam cop.net> wrote:
On Sun, 15 Aug 2004 14:44:00 +0200, "jacob navia"
<ja***@jacob.r emcomp.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.int eraccess.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
3198
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 fine with my HP 3820 with USB printer (WinXP)
0
380
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 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...
0
1918
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. public struct PRINTERINFO2
3
10067
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. --------------------------------------------------------------- public struct PRINTERINFO2
7
28774
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 google and microsoft...nothing for c#. If anyone has a solution, I would appreciate knowing. Thanks, Trint
6
2401
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 open,etc I would like to get an exception back. Is this possible? tia
2
4243
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 name I need to know the status of this printer on the system name "os1".
9
10357
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 find out how to do this. I have looked everywhere i know with no luck. Thank you in advance for your help.
1
4226
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 responding e.g turned off, out of paper etc, via code I want to display a warning if the printer needs attention rather than just
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10154
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.