Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: brain dead question : CFileDialog initial Dir. Pin
David Crow24-Apr-07 4:31
David Crow24-Apr-07 4:31 
AnswerRe: brain dead question : CFileDialog initial Dir. Pin
toxcct24-Apr-07 4:33
toxcct24-Apr-07 4:33 
GeneralRe: brain dead question : CFileDialog initial Dir. Pin
CPallini24-Apr-07 4:43
mveCPallini24-Apr-07 4:43 
AnswerRe: brain dead question : CFileDialog initial Dir. Pin
Mark Salsbery24-Apr-07 8:08
Mark Salsbery24-Apr-07 8:08 
QuestionReturning a class reference Pin
TheDelChop24-Apr-07 2:55
TheDelChop24-Apr-07 2:55 
AnswerRe: Returning a class reference Pin
CPallini24-Apr-07 3:02
mveCPallini24-Apr-07 3:02 
GeneralRe: Returning a class reference Pin
Stephen Hewitt24-Apr-07 3:26
Stephen Hewitt24-Apr-07 3:26 
GeneralRe: Returning a class reference Pin
CPallini24-Apr-07 3:45
mveCPallini24-Apr-07 3:45 
Stephen Hewitt wrote:
CPallini wrote:

TheDelChop wrote:
why does an overloaded operator need to return a reference to the lvalue?



In fact an assignment operator (like *=) must return a l-value.


No, it doesn't.


At least, it should (MSDN on assignment operator):


The operator returns the object to preserve the behavior of the assignment operator,which returns the value of the left side after the assignment is complete. This allows writing statements such as:
pt1 = pt2 = pt3;



Smile | :)



If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: Returning a class reference Pin
Stephen Hewitt24-Apr-07 4:04
Stephen Hewitt24-Apr-07 4:04 
AnswerRe: Returning a class reference Pin
Stephen Hewitt24-Apr-07 3:34
Stephen Hewitt24-Apr-07 3:34 
AnswerRe: Returning a class reference Pin
Michael Dunn24-Apr-07 8:39
sitebuilderMichael Dunn24-Apr-07 8:39 
GeneralRe: Returning a class reference Pin
TheDelChop24-Apr-07 8:40
TheDelChop24-Apr-07 8:40 
Questionchange permissions of an existing registry key Pin
programvinod24-Apr-07 2:53
programvinod24-Apr-07 2:53 
QuestionTree in MFC Pin
T.RATHA KRISHNAN24-Apr-07 2:20
T.RATHA KRISHNAN24-Apr-07 2:20 
QuestionRe: Tree in MFC Pin
CPallini24-Apr-07 2:24
mveCPallini24-Apr-07 2:24 
AnswerRe: Tree in MFC Pin
T.RATHA KRISHNAN24-Apr-07 2:30
T.RATHA KRISHNAN24-Apr-07 2:30 
GeneralRe: Tree in MFC Pin
CPallini24-Apr-07 2:34
mveCPallini24-Apr-07 2:34 
AnswerRe: Tree in MFC Pin
prasad_som24-Apr-07 2:41
prasad_som24-Apr-07 2:41 
QuestionFile Issue Pin
Try24-Apr-07 2:10
Try24-Apr-07 2:10 
AnswerRe: File Issue Pin
CPallini24-Apr-07 2:27
mveCPallini24-Apr-07 2:27 
AnswerRe: File Issue Pin
David Crow24-Apr-07 2:49
David Crow24-Apr-07 2:49 
GeneralRe: File Issue Pin
Try24-Apr-07 3:14
Try24-Apr-07 3:14 
GeneralRe: File Issue Pin
David Crow24-Apr-07 3:22
David Crow24-Apr-07 3:22 
GeneralRe: File Issue Pin
Try24-Apr-07 3:27
Try24-Apr-07 3:27 
Questiona star algorithm Pin
s chiddarwar24-Apr-07 0:57
s chiddarwar24-Apr-07 0:57 

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.