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

C / C++ / MFC

 
GeneralRe: Day from Date Covergence algorithm Pin
ColinDavies25-Mar-03 18:22
ColinDavies25-Mar-03 18:22 
Generalflat style CListCtrl Pin
logo2age25-Mar-03 16:03
logo2age25-Mar-03 16:03 
GeneralRe: flat style CListCtrl Pin
Michael Dunn25-Mar-03 19:33
sitebuilderMichael Dunn25-Mar-03 19:33 
GeneralRe: flat style CListCtrl Pin
logo2age26-Mar-03 20:41
logo2age26-Mar-03 20:41 
GeneralAbout "Select&Copy" of CGridCtrl Pin
Kanghongyuan25-Mar-03 13:50
Kanghongyuan25-Mar-03 13:50 
Question"This" reference? Pin
wow999925-Mar-03 13:34
wow999925-Mar-03 13:34 
AnswerRe: "This" reference? Pin
Anders Molin25-Mar-03 13:48
professionalAnders Molin25-Mar-03 13:48 
AnswerRe: "This" reference? Pin
Jambolo25-Mar-03 16:27
Jambolo25-Mar-03 16:27 
Here are some examples of when this is used:

1. Sometimes you will see it as a function parameter. For example, registering a callback: Server::RegisterCallback( this );
2. It is used for a lot of overloaded operators:
Vector const & operator +( Vector const & b )<br />
{<br />
    ...<br />
    return *this;<br />
}

3. When overloading operator= you must make sure that the source is not the same as the destination:
Vector const & operator =( Vector const & b )<br />
{<br />
    if ( this != &b )<br />
    {<br />
        ...<br />
    }<br />
    return *this;<br />
}


You will probably never see "this->" because there is never a need for it -- it is automatic.
GeneralSpecifying debugger Pin
Jon Sagara25-Mar-03 10:46
Jon Sagara25-Mar-03 10:46 
GeneralRe: Specifying debugger Pin
Anders Molin25-Mar-03 13:21
professionalAnders Molin25-Mar-03 13:21 
GeneralRe: Specifying debugger Pin
Jon Sagara25-Mar-03 13:23
Jon Sagara25-Mar-03 13:23 
Generalcout << flush not working in my class that inherits from fstream Pin
mflores8825-Mar-03 10:28
mflores8825-Mar-03 10:28 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
Dave Bryant25-Mar-03 11:12
Dave Bryant25-Mar-03 11:12 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
mflores8826-Mar-03 5:15
mflores8826-Mar-03 5:15 
GeneralPbm with CDhtmlDialog Pin
RaajaOfSelf25-Mar-03 9:14
RaajaOfSelf25-Mar-03 9:14 
GeneralRe: Pbm with CDhtmlDialog Pin
RaajaOfSelf25-Mar-03 9:25
RaajaOfSelf25-Mar-03 9:25 
GeneralShared Memory Allocator for vc++ / Win32 Pin
CLM25-Mar-03 8:29
CLM25-Mar-03 8:29 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
Neville Franks25-Mar-03 10:01
Neville Franks25-Mar-03 10:01 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
CLM25-Mar-03 12:03
CLM25-Mar-03 12:03 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
Neville Franks26-Mar-03 0:45
Neville Franks26-Mar-03 0:45 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
CLM26-Mar-03 15:56
CLM26-Mar-03 15:56 
QuestionHow to get pointer of outer class inside an inner class Pin
Anonymous25-Mar-03 8:17
Anonymous25-Mar-03 8:17 
AnswerRe: How to get pointer of outer class inside an inner class Pin
Tim Smith25-Mar-03 8:21
Tim Smith25-Mar-03 8:21 
GeneralRe: How to get pointer of outer class inside an inner class Pin
Anonymous25-Mar-03 8:31
Anonymous25-Mar-03 8:31 
GeneralRe: How to get pointer of outer class inside an inner class Pin
Tim Smith25-Mar-03 8:48
Tim Smith25-Mar-03 8:48 

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.