Click here to Skip to main content
15,921,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Erratic GDI+ redrawing Pin
Egosphere22-Nov-04 15:00
Egosphere22-Nov-04 15:00 
QuestionWindowless RichEdit Control Example? Pin
delphidab22-Nov-04 12:20
delphidab22-Nov-04 12:20 
Generaldeploying a dll Pin
Asad Hussain22-Nov-04 11:47
Asad Hussain22-Nov-04 11:47 
GeneralRe: deploying a dll Pin
Anonymous22-Nov-04 12:49
Anonymous22-Nov-04 12:49 
GeneralCListCtrl w/ multiple attributes Pin
john john mackey22-Nov-04 10:52
john john mackey22-Nov-04 10:52 
GeneralRe: CListCtrl w/ multiple attributes Pin
Mike Danberg23-Nov-04 22:42
Mike Danberg23-Nov-04 22:42 
QuestionWhat's the benefit using serialization? Pin
Anonymous22-Nov-04 9:43
Anonymous22-Nov-04 9:43 
AnswerRe: What's the benefit using serialization? Pin
David Crow22-Nov-04 10:43
David Crow22-Nov-04 10:43 
One benefit is polymorphism. For example:

int n;
double d;
char c;
ar << n << d << c;
The ar object knows how to handle each type. If you were to write your own Write() method, you'd need one for each type. Here is another view.

As to your second question, TextOut() and the \r\n characters are generally not used in the same context. This is mainly because TextOut() supports the absolute positioning of the x and y reference points. In other words, if there existed a \n character in the string, you'd need to parse that out and adjust the y position before outputting more text.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


AnswerRe: What's the benefit using serialization? Pin
Blake Miller23-Nov-04 9:26
Blake Miller23-Nov-04 9:26 
GeneralAcess and C++ application Pin
krimkrim22-Nov-04 8:54
krimkrim22-Nov-04 8:54 
GeneralRe: Acess and C++ application Pin
BaldwinMartin23-Nov-04 10:06
BaldwinMartin23-Nov-04 10:06 
GeneralNeed help for this assignment.... Pin
rudylili22-Nov-04 8:04
rudylili22-Nov-04 8:04 
GeneralRe: Need help for this assignment.... Pin
David Crow22-Nov-04 8:47
David Crow22-Nov-04 8:47 
GeneralRe: Need help for this assignment.... Pin
namaskaaram22-Nov-04 23:49
namaskaaram22-Nov-04 23:49 
GeneralRe: Need help for this assignment.... Pin
rudylili23-Nov-04 3:51
rudylili23-Nov-04 3:51 
GeneralSomething is not releasing the resources after program quits Pin
Budric B.22-Nov-04 7:50
Budric B.22-Nov-04 7:50 
GeneralRe: Something is not releasing the resources after program quits Pin
Maximilien22-Nov-04 8:18
Maximilien22-Nov-04 8:18 
Generaldon't know Pin
Budric B.22-Nov-04 8:47
Budric B.22-Nov-04 8:47 
Generalstatic transparent background Pin
LukeV22-Nov-04 7:44
LukeV22-Nov-04 7:44 
GeneralRe: static transparent background Pin
BaldwinMartin23-Nov-04 10:09
BaldwinMartin23-Nov-04 10:09 
GeneralOutput help Pin
Anonymous22-Nov-04 7:36
Anonymous22-Nov-04 7:36 
GeneralRe: Output help Pin
David Crow22-Nov-04 8:05
David Crow22-Nov-04 8:05 
GeneralRe: Output help Pin
namaskaaram22-Nov-04 18:36
namaskaaram22-Nov-04 18:36 
GeneralRe: Output help Pin
namaskaaram22-Nov-04 22:17
namaskaaram22-Nov-04 22:17 
QuestionHow can I know where a program leaks memory if it hangs after 48 hours of working? Pin
Joan M22-Nov-04 6:45
professionalJoan M22-Nov-04 6:45 

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.