473,804 Members | 3,383 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 4306
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
3200
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
28776
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
2403
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
4245
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
10372
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
4230
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
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10320
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
10308
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
10073
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7609
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
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
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...
3
2981
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.