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

C / C++ / MFC

 
AnswerRe: brain dead question : CFileDialog initial Dir. Pin
CPallini24-Apr-07 4:27
mveCPallini24-Apr-07 4:27 
GeneralRe: brain dead question : CFileDialog initial Dir. Pin
CPallini24-Apr-07 4:31
mveCPallini24-Apr-07 4:31 
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 
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.

TheDelChop wrote:
Or because 'this' is a pointer, by returning '&this' am I creating a second level of indirection, because i don't want the address of the 'this' pointer, but rather the address that the 'this' pointer points to?


Your guess is right. this is a pointer to the object itself, *this is a reference to the object itself.

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 3:26
Stephen Hewitt24-Apr-07 3:26 
GeneralRe: Returning a class reference Pin
CPallini24-Apr-07 3:45
mveCPallini24-Apr-07 3:45 
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 

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.