Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parsing a string that contains only one seperator Pin
David Scambler29-Oct-01 11:03
David Scambler29-Oct-01 11:03 
GeneralRe: Parsing a string that contains only one seperator Pin
Ravi Bhavnani29-Oct-01 11:06
professionalRavi Bhavnani29-Oct-01 11:06 
GeneralRe: Parsing a string that contains only one seperator Pin
Kuniva30-Oct-01 1:57
Kuniva30-Oct-01 1:57 
GeneralRe: Parsing a string that contains only one seperator Pin
Stevieslu12-Dec-01 5:29
Stevieslu12-Dec-01 5:29 
GeneralRe: Parsing a string that contains only one seperator Pin
Ravi Bhavnani12-Dec-01 6:25
professionalRavi Bhavnani12-Dec-01 6:25 
Generalthis-> question Pin
Frank Liao29-Oct-01 9:52
Frank Liao29-Oct-01 9:52 
GeneralRe: this-> question Pin
Carlos Antollini29-Oct-01 9:56
Carlos Antollini29-Oct-01 9:56 
GeneralRe: this-> question Pin
Tomasz Sowinski29-Oct-01 10:18
Tomasz Sowinski29-Oct-01 10:18 
There's no performance difference. IMHO, you only need 'this->' when one of the method parameters has name colliding with name of another data member. In the example below, the parameter 'foo' hides the member 'foo', so you need to explicitly qualify it with 'this'. Of course, you can rename the SetFoo parameter 'foo' to 'theFoo', in such case there's no need for explicit 'this'.

class obj
{
public:
	void SetFoo(int foo) { this->foo = foo; }
	int GetFoo() const { return foo; }
private:
	int foo;
};



Tomasz Sowinski -- http://www.shooltz.com
GeneralWindow's API errors Pin
29-Oct-01 9:11
suss29-Oct-01 9:11 
GeneralRe: Window's API errors Pin
Christian Graus29-Oct-01 9:20
protectorChristian Graus29-Oct-01 9:20 
GeneralRe: Window's API errors Pin
Michael P Butler29-Oct-01 9:20
Michael P Butler29-Oct-01 9:20 
GeneralAccess 2000, DAO version ... Pin
Hadi Rezaee29-Oct-01 7:55
Hadi Rezaee29-Oct-01 7:55 
GeneralRe: Access 2000, DAO version ... Pin
Carlos Antollini29-Oct-01 8:51
Carlos Antollini29-Oct-01 8:51 
GeneralRe: Access 2000, DAO version ... Pin
Steen Krogsgaard29-Oct-01 22:37
Steen Krogsgaard29-Oct-01 22:37 
GeneralRe: Access 2000, DAO version ... Pin
Steen Krogsgaard29-Oct-01 22:37
Steen Krogsgaard29-Oct-01 22:37 
GeneralDebug assertion failed getting itemtext from listview Pin
Kuniva29-Oct-01 7:28
Kuniva29-Oct-01 7:28 
GeneralRe: Debug assertion failed getting itemtext from listview Pin
J Patel29-Oct-01 7:56
J Patel29-Oct-01 7:56 
GeneralRe: Debug assertion failed getting itemtext from listview Pin
Alvaro Mendez29-Oct-01 9:45
Alvaro Mendez29-Oct-01 9:45 
GeneralRe: Debug assertion failed getting itemtext from listview Pin
J Patel29-Oct-01 7:57
J Patel29-Oct-01 7:57 
GeneralON_EVENT Pin
29-Oct-01 6:46
suss29-Oct-01 6:46 
GeneralPainting an icon into bitmap Pin
krausest29-Oct-01 5:57
krausest29-Oct-01 5:57 
Generalgetting listview item text Pin
Kuniva29-Oct-01 5:56
Kuniva29-Oct-01 5:56 
GeneralRe: getting listview item text Pin
Carlos Antollini29-Oct-01 6:09
Carlos Antollini29-Oct-01 6:09 
Questionc++ forums/contacts and help? Pin
CrazyJim29-Oct-01 5:37
CrazyJim29-Oct-01 5:37 
AnswerRe: c++ forums/contacts and help? Pin
Carlos Antollini29-Oct-01 5:50
Carlos Antollini29-Oct-01 5:50 

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.