Click here to Skip to main content
15,891,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMAPI problem - PR_IPM_OUTBOX_ENTRYID doesn't exist?? Pin
tsunamisama13-Mar-09 8:04
tsunamisama13-Mar-09 8:04 
AnswerRe: MAPI problem - PR_IPM_OUTBOX_ENTRYID doesn't exist?? [modified] Pin
tha_specializt13-Jan-11 1:36
tha_specializt13-Jan-11 1:36 
GeneralRe: MAPI problem - PR_IPM_OUTBOX_ENTRYID doesn't exist?? Pin
sergiobuonanno19-Jul-11 3:44
sergiobuonanno19-Jul-11 3:44 
Questionthis pointer... Pin
siva45513-Mar-09 6:58
siva45513-Mar-09 6:58 
AnswerRe: this pointer... Pin
Maximilien13-Mar-09 7:34
Maximilien13-Mar-09 7:34 
GeneralRe: this pointer... Pin
CPallini13-Mar-09 7:53
mveCPallini13-Mar-09 7:53 
AnswerRe: this pointer... Pin
David Crow13-Mar-09 7:42
David Crow13-Mar-09 7:42 
AnswerRe: this pointer... Pin
CPallini13-Mar-09 7:49
mveCPallini13-Mar-09 7:49 
pradeep455 wrote:
May i know really when "this" pointer is helpful and how...if possible with sample....Please don"t mind as im a beginner for c++.....

It may be useful to avoid name conflicts, as in the following example
class A
{
int items;
public:
  A(int items){ this->items = items;}
}; 


It is needed, however when overloading some operators, see, for instance, [^].



pradeep455 wrote:
and if i made dynamic memory allocation using stack pointer is it necessary to delete it.. because when the function ends it is automatically freed right...?

If you allocate (statically: dynamic allocation happens only in the heap) objects on the stack then you don't have to release memory for them.

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.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: this pointer... Pin
led mike13-Mar-09 9:00
led mike13-Mar-09 9:00 
GeneralRe: this pointer... Pin
Maximilien13-Mar-09 9:21
Maximilien13-Mar-09 9:21 
GeneralRe: this pointer... Pin
led mike13-Mar-09 12:05
led mike13-Mar-09 12:05 
GeneralRe: this pointer... Pin
Maximilien13-Mar-09 14:56
Maximilien13-Mar-09 14:56 
QuestionReg :: Customizing CDatetimeCtrl Pin
chandru.jeeva13-Mar-09 6:11
chandru.jeeva13-Mar-09 6:11 
QuestionPropertyPage Pin
shakumar_2213-Mar-09 6:08
shakumar_2213-Mar-09 6:08 
AnswerRe: PropertyPage Pin
Code-o-mat13-Mar-09 6:38
Code-o-mat13-Mar-09 6:38 
GeneralRe: PropertyPage Pin
shakumar_2214-Mar-09 2:31
shakumar_2214-Mar-09 2:31 
GeneralRe: PropertyPage Pin
Code-o-mat14-Mar-09 4:01
Code-o-mat14-Mar-09 4:01 
QuestionCreating derived type from a base class template Pin
Skippums13-Mar-09 6:00
Skippums13-Mar-09 6:00 
AnswerRe: Creating derived type from a base class template Pin
Stuart Dootson13-Mar-09 6:06
professionalStuart Dootson13-Mar-09 6:06 
GeneralRe: Creating derived type from a base class template Pin
Skippums13-Mar-09 6:15
Skippums13-Mar-09 6:15 
GeneralRe: Creating derived type from a base class template Pin
Stuart Dootson13-Mar-09 6:40
professionalStuart Dootson13-Mar-09 6:40 
GeneralRe: Creating derived type from a base class template Pin
Skippums13-Mar-09 8:12
Skippums13-Mar-09 8:12 
GeneralRe: Creating derived type from a base class template Pin
Stuart Dootson13-Mar-09 14:02
professionalStuart Dootson13-Mar-09 14:02 
GeneralRe: Creating derived type from a base class template Pin
Skippums19-Mar-09 9:40
Skippums19-Mar-09 9:40 
QuestionMultiByteToWideChar crashes out on longer strings [modified] Pin
RichardBrock13-Mar-09 4:45
RichardBrock13-Mar-09 4:45 

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.