Click here to Skip to main content
15,896,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change size of DialogBox at run time? Pin
Atul238-May-07 23:47
Atul238-May-07 23:47 
AnswerRe: How to change size of DialogBox at run time? Pin
_AnsHUMAN_ 8-May-07 23:56
_AnsHUMAN_ 8-May-07 23:56 
GeneralRe: How to change size of DialogBox at run time? Pin
Atul239-May-07 2:01
Atul239-May-07 2:01 
AnswerRe: How to change size of DialogBox at run time? Pin
prasad_som9-May-07 2:15
prasad_som9-May-07 2:15 
AnswerRe: How to change size of DialogBox at run time? Pin
Nibu babu thomas9-May-07 0:48
Nibu babu thomas9-May-07 0:48 
AnswerRe: How to change size of DialogBox at run time? Pin
ThatsAlok16-May-07 20:36
ThatsAlok16-May-07 20:36 
Questionget the table name in a .mdb file Pin
hero19958-May-07 23:40
hero19958-May-07 23:40 
QuestionPrint a CString Pin
Epi8-May-07 23:16
Epi8-May-07 23:16 
Hello,

I have a CString in a CDialog and I want to print it in a Network printer.

I have been taking a look of the diffrent methods to do it but in all of them I have find problems,

For example:

1.-
filebuf fb( "prn:" ); // Filebuf object attached to "prn:"<br />
filebuf fb( "prn:" ); // Filebuf object attached to "prn:"<br />
cout = &fb; // fb associated with cout<br />
cout << "testing"; // Text goes to PRN: not stdout


Can only print to local printer.

2.- CView::OnPrint

I can't use it because I am using CDialog not Cview, CFormView.....

Fixing:

Does any way to print a CString using CPrintDialog?

Thanks in advance,

Best regards
AnswerRe: Print a CString Pin
Hans Dietrich9-May-07 0:39
mentorHans Dietrich9-May-07 0:39 
AnswerRe: Print a CString Pin
Hugo González Castro9-May-07 4:22
professionalHugo González Castro9-May-07 4:22 
GeneralRe: Print a CString Pin
Epi9-May-07 22:11
Epi9-May-07 22:11 
QuestionVC.net to VC6.0 Pin
vibindia8-May-07 22:42
vibindia8-May-07 22:42 
AnswerRe: VC.net to VC6.0 Pin
Atul238-May-07 23:50
Atul238-May-07 23:50 
AnswerRe: VC.net to VC6.0 Pin
David Crow9-May-07 2:44
David Crow9-May-07 2:44 
AnswerRe: VC.net to VC6.0 Pin
ThatsAlok16-May-07 20:35
ThatsAlok16-May-07 20:35 
QuestionUrgent Converting stuff Pin
imanos8-May-07 22:15
imanos8-May-07 22:15 
AnswerRe: Urgent Converting stuff Pin
_AnsHUMAN_ 8-May-07 22:16
_AnsHUMAN_ 8-May-07 22:16 
AnswerRe: Urgent Converting stuff [modified] Pin
Sam_c8-May-07 22:40
Sam_c8-May-07 22:40 
AnswerRe: Urgent Converting stuff Pin
Nelek8-May-07 22:55
protectorNelek8-May-07 22:55 
AnswerRe: Urgent Converting stuff Pin
Vikrant for VC++9-May-07 1:28
Vikrant for VC++9-May-07 1:28 
QuestionDrag image on dialog box at run time Pin
rjkg8-May-07 22:12
rjkg8-May-07 22:12 
AnswerRe: Drag image on dialog box at run time Pin
_AnsHUMAN_ 8-May-07 22:15
_AnsHUMAN_ 8-May-07 22:15 
GeneralRe: Drag image on dialog box at run time Pin
rjkg8-May-07 22:53
rjkg8-May-07 22:53 
GeneralRe: Drag image on dialog box at run time Pin
_AnsHUMAN_ 9-May-07 0:20
_AnsHUMAN_ 9-May-07 0:20 
GeneralRe: Drag image on dialog box at run time Pin
rjkg9-May-07 1:10
rjkg9-May-07 1:10 

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.