Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set the text of a CEdit to include a newline? Pin
David Crow19-Oct-05 9:10
David Crow19-Oct-05 9:10 
AnswerRe: How to set the text of a CEdit to include a newline? Pin
Ghasrfakhri19-Oct-05 9:15
Ghasrfakhri19-Oct-05 9:15 
GeneralRe: How to set the text of a CEdit to include a newline? Pin
David Crow19-Oct-05 10:06
David Crow19-Oct-05 10:06 
QuestionPreventing the resizing of a window Pin
Dilpo19-Oct-05 7:13
Dilpo19-Oct-05 7:13 
AnswerRe: Preventing the resizing of a window Pin
Maximilien19-Oct-05 7:34
Maximilien19-Oct-05 7:34 
GeneralRe: Preventing the resizing of a window Pin
Dilpo19-Oct-05 7:36
Dilpo19-Oct-05 7:36 
QuestionTransparent temporaries..? Pin
Bob Stanneveld19-Oct-05 7:07
Bob Stanneveld19-Oct-05 7:07 
AnswerRe: Transparent temporaries..? Pin
BadKarma19-Oct-05 9:08
BadKarma19-Oct-05 9:08 
Hi, Bob,

its normal that you should write
CWrapperClass Wrapper;<br />
Wrapper.operator ->().operator ->().DoFoo();

because after each function .operator ->() call you have returned a other object
temporary, pointer or reference. From this object you can call again some functions and so on.

The first call (Wrapper.operator ->()) returns the temp object 'TempX' (CInvisibleTemporary)
You have now a object from which you can call some functions like TempX.operator ->() which returns a reference to the encapsulted object (CArbitraryClass m_ArbitraryObject) and now you can call the finale funtion DoFoo();

If you want to encapsulate the function call list, you will have to return the correct object immediatly. But then you could lose the transparancy you need.

Maybe this could be done by using templates. I will check this out!!

codito ergo sum
GeneralRe: Transparent temporaries..? Pin
Bob Stanneveld19-Oct-05 10:11
Bob Stanneveld19-Oct-05 10:11 
GeneralRe: Transparent temporaries..? Pin
BadKarma19-Oct-05 20:55
BadKarma19-Oct-05 20:55 
GeneralRe: Transparent temporaries..? Pin
Bob Stanneveld20-Oct-05 0:56
Bob Stanneveld20-Oct-05 0:56 
AnswerRe: Transparent temporaries..? Pin
BadKarma19-Oct-05 23:00
BadKarma19-Oct-05 23:00 
Questionhow to use a class to be a utility class of another class? Pin
knightz10119-Oct-05 6:29
knightz10119-Oct-05 6:29 
AnswerRe: how to use a class to be a utility class of another class? Pin
Maximilien19-Oct-05 6:50
Maximilien19-Oct-05 6:50 
AnswerRe: how to use a class to be a utility class of another class? Pin
Bob Stanneveld19-Oct-05 8:12
Bob Stanneveld19-Oct-05 8:12 
QuestionLooking for scheduling control (Outlook2003 like) Pin
TheDen19-Oct-05 5:32
TheDen19-Oct-05 5:32 
AnswerRe: Looking for scheduling control (Outlook2003 like) Pin
S Douglas20-Oct-05 0:13
professionalS Douglas20-Oct-05 0:13 
QuestionHow to determine hard drives? Pin
wasife19-Oct-05 4:28
wasife19-Oct-05 4:28 
AnswerRe: How to determine hard drives? Pin
David Crow19-Oct-05 4:40
David Crow19-Oct-05 4:40 
AnswerRe: How to determine hard drives? Pin
Anehl19-Oct-05 4:44
Anehl19-Oct-05 4:44 
QuestionSoundcard VU Meter Pin
69 Bay19-Oct-05 2:24
69 Bay19-Oct-05 2:24 
Questionapi subversion Pin
Anehl19-Oct-05 1:45
Anehl19-Oct-05 1:45 
QuestionRe: api subversion Pin
David Crow19-Oct-05 3:15
David Crow19-Oct-05 3:15 
AnswerRe: api subversion Pin
Anehl19-Oct-05 3:36
Anehl19-Oct-05 3:36 
QuestionRe: api subversion Pin
David Crow19-Oct-05 3:39
David Crow19-Oct-05 3:39 

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.