Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cin >> question Pin
David Crow17-Mar-04 2:27
David Crow17-Mar-04 2:27 
GeneralRe: cin >> question Pin
Anonymous17-Mar-04 22:11
Anonymous17-Mar-04 22:11 
GeneralRe: cin >> question Pin
David Crow19-Mar-04 3:25
David Crow19-Mar-04 3:25 
GeneralProperty sheets and pages Pin
Anonymous17-Mar-04 0:56
Anonymous17-Mar-04 0:56 
GeneralRe: Property sheets and pages Pin
Nirav Doshi17-Mar-04 1:28
Nirav Doshi17-Mar-04 1:28 
GeneralRe: Property sheets and pages Pin
thowra17-Mar-04 1:52
thowra17-Mar-04 1:52 
GeneralDetecting if a print job failed Pin
tcss16-Mar-04 23:58
tcss16-Mar-04 23:58 
GeneralRe: Detecting if a print job failed Pin
Blake Miller17-Mar-04 7:45
Blake Miller17-Mar-04 7:45 
You need to examine the printer status functions.
You need to know which printer you sent your print jobs to,
and then get the printer status and the printer's jobs' status.

I have been puling my hair out trying to figure out how to detect the printer has some other problem than just 'offline', since most printer drivers do not update the printer status data with anything but the offline bit.

One thing I do, is to watch the printer's job count. If it does not decrease over time, then something is wrong with the printer, like it is sitting there out of paper.

If you are REALLY hard core, you can write something called a 'print monitor', and it can get between Windows and the printer drvier, and this can potentially detect that the printer is off or out of paper or some other types of errors.

Look at the functions EnumJobs and GetJob

GeneralRe: Detecting if a print job failed Pin
tcss17-Mar-04 20:20
tcss17-Mar-04 20:20 
GeneralGDI+ and bitmap resources Pin
bouli16-Mar-04 23:10
bouli16-Mar-04 23:10 
GeneralRe: GDI+ and bitmap resources Pin
Anonymous16-Mar-04 23:31
Anonymous16-Mar-04 23:31 
GeneralRe: GDI+ and bitmap resources Pin
bouli17-Mar-04 0:34
bouli17-Mar-04 0:34 
GeneralRe: GDI+ and bitmap resources Pin
wb17-Mar-04 1:03
wb17-Mar-04 1:03 
GeneralRe: GDI+ and bitmap resources Pin
bouli17-Mar-04 5:01
bouli17-Mar-04 5:01 
GeneralInstalling .NET Pin
Anonymous16-Mar-04 22:33
Anonymous16-Mar-04 22:33 
GeneralRe: Installing .NET Pin
Prakash Nadar16-Mar-04 23:08
Prakash Nadar16-Mar-04 23:08 
GeneralRe: Installing .NET Pin
Anonymous16-Mar-04 23:12
Anonymous16-Mar-04 23:12 
GeneralRe: Installing .NET Pin
Prakash Nadar16-Mar-04 23:36
Prakash Nadar16-Mar-04 23:36 
GeneralRe: Installing .NET Pin
Anonymous17-Mar-04 0:03
Anonymous17-Mar-04 0:03 
GeneralRe: Installing .NET Pin
Chris Meech17-Mar-04 4:43
Chris Meech17-Mar-04 4:43 
GeneralRe: Installing .NET Pin
Anonymous17-Mar-04 15:17
Anonymous17-Mar-04 15:17 
QuestionCan I keep a DDB for painting? Pin
living16-Mar-04 21:29
living16-Mar-04 21:29 
Questionwhat are differences when using RasDial and InternetDial? Pin
DengJW16-Mar-04 21:07
DengJW16-Mar-04 21:07 
QuestionHow do i place a dialog in a formview Pin
swarnamanoo16-Mar-04 19:43
swarnamanoo16-Mar-04 19:43 
AnswerRe: How do i place a dialog in a formview Pin
Ravi Bhavnani16-Mar-04 20:00
professionalRavi Bhavnani16-Mar-04 20:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.