Click here to Skip to main content
15,913,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: BMP file to be written to an AVI file Pin
achainard10-Jun-08 2:36
achainard10-Jun-08 2:36 
QuestionWaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 11:39
wjeanveau9-Jun-08 11:39 
AnswerRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 12:29
professionalJoe Woodbury9-Jun-08 12:29 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 12:43
wjeanveau9-Jun-08 12:43 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 12:59
professionalJoe Woodbury9-Jun-08 12:59 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 13:10
wjeanveau9-Jun-08 13:10 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 13:17
professionalJoe Woodbury9-Jun-08 13:17 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 13:23
wjeanveau9-Jun-08 13:23 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 13:42
professionalJoe Woodbury9-Jun-08 13:42 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 14:36
wjeanveau9-Jun-08 14:36 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 15:31
professionalJoe Woodbury9-Jun-08 15:31 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 17:10
wjeanveau9-Jun-08 17:10 
Questionreading bits from file Pin
botnet9-Jun-08 11:06
botnet9-Jun-08 11:06 
AnswerRe: reading bits from file Pin
Jijo.Raj9-Jun-08 18:38
Jijo.Raj9-Jun-08 18:38 
GeneralRe: reading bits from file Pin
achainard10-Jun-08 2:45
achainard10-Jun-08 2:45 
GeneralRe: reading bits from file Pin
botnet10-Jun-08 13:09
botnet10-Jun-08 13:09 
AnswerRe: reading bits from file Pin
krmed10-Jun-08 6:08
krmed10-Jun-08 6:08 
QuestionBlank printout to printer Pin
Joe Smith IX9-Jun-08 7:04
Joe Smith IX9-Jun-08 7:04 
AnswerRe: Blank printout to printer [modified] Pin
Nelek9-Jun-08 8:12
protectorNelek9-Jun-08 8:12 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 8:33
Joe Smith IX9-Jun-08 8:33 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 8:59
protectorNelek9-Jun-08 8:59 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 9:22
Joe Smith IX9-Jun-08 9:22 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 9:34
protectorNelek9-Jun-08 9:34 
I don't have VC++ installed in this laptop so it is difficult for me to compile/debug. I am just answering by heart (I can have errors).

I have taken a look into your code and...

bPrintingOK &= dc.StartDoc(&docinfo);
bPrintingOK &= dc.StartPage();
((CReportView*)theApp.m_pReportView)->OnPrint(&dc, &Info);
//
//
bPrintingOK &= dc.EndPage();
((CReportView*)theApp.m_pReportView)->OnEndPrinting(&dc, &Info);


Why are you mixing a dialog to set printing parameters but then printing from your other view? Wouldn't be easier to set parameters and print directly there?

Chris' article is to print within a dialog. So, as you said, using a DrawText in the dialog prints it works.

Sending DCs and pInfos from one place to another is not so good idea. I think the problem can be there

Regards.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.

GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 9:53
Joe Smith IX9-Jun-08 9:53 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 10:02
protectorNelek9-Jun-08 10:02 

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.