Click here to Skip to main content
15,925,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set the background color of one line of CListCtrl? Pin
Wenrich3-Nov-02 19:28
Wenrich3-Nov-02 19:28 
AnswerRe: How to set the background color of one line of CListCtrl? Pin
viliam4-Nov-02 0:43
viliam4-Nov-02 0:43 
AnswerRe: How to set the background color of one line of CListCtrl? Pin
Alexinuk4-Nov-02 4:36
Alexinuk4-Nov-02 4:36 
Questionwhy virtual destructor? Pin
devvvy3-Nov-02 18:46
devvvy3-Nov-02 18:46 
AnswerRe: why virtual destructor? Pin
Chris Losinger3-Nov-02 18:51
professionalChris Losinger3-Nov-02 18:51 
GeneralRe: why virtual destructor? Pin
devvvy3-Nov-02 18:57
devvvy3-Nov-02 18:57 
GeneralRe: why virtual destructor? Pin
Chris Losinger3-Nov-02 18:59
professionalChris Losinger3-Nov-02 18:59 
GeneralRe: why virtual destructor? Pin
Paul M Watt3-Nov-02 19:11
mentorPaul M Watt3-Nov-02 19:11 
Chris Losinger wrote:
a virtual destructor ensures that the destructor in the base class is called, in addition to the destructor in any derived classes.

This is only the first part of the statement, because this automatically happens normally. The other half of this statement is when the derived class is used polymorphically in the base class.

So, if you are storing a derived object of type B, in a type A pointer, you will need to have a virtual destructor in the base class A, in order for the proper destructor of class B to be called.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: why virtual destructor? Pin
Chris Losinger3-Nov-02 19:23
professionalChris Losinger3-Nov-02 19:23 
GeneralRe: why virtual destructor? Pin
Paul M Watt3-Nov-02 19:39
mentorPaul M Watt3-Nov-02 19:39 
GeneralRe: why virtual destructor? Pin
Chris Losinger3-Nov-02 19:59
professionalChris Losinger3-Nov-02 19:59 
AnswerRe: why virtual destructor? Pin
Paul M Watt3-Nov-02 19:35
mentorPaul M Watt3-Nov-02 19:35 
GeneralRe: why virtual destructor? Pin
devvvy3-Nov-02 19:51
devvvy3-Nov-02 19:51 
GeneralATL COM + ASP Pin
devvvy3-Nov-02 17:53
devvvy3-Nov-02 17:53 
GeneralRe: ATL COM + ASP Pin
Christian Graus3-Nov-02 18:27
protectorChristian Graus3-Nov-02 18:27 
GeneralRe: ATL COM + ASP Pin
devvvy3-Nov-02 18:42
devvvy3-Nov-02 18:42 
Generalis there any good tutorial..>? Pin
devvvy3-Nov-02 18:46
devvvy3-Nov-02 18:46 
GeneralRe: is there any good tutorial..>? Pin
Christian Graus3-Nov-02 21:08
protectorChristian Graus3-Nov-02 21:08 
GeneralRe: ATL COM + ASP Pin
Christian Graus3-Nov-02 21:06
protectorChristian Graus3-Nov-02 21:06 
GeneralRe: ATL COM + ASP Pin
devvvy3-Nov-02 22:07
devvvy3-Nov-02 22:07 
GeneralRe: ATL COM + ASP Pin
Michael P Butler3-Nov-02 23:00
Michael P Butler3-Nov-02 23:00 
Generaltable schema Pin
devvvy3-Nov-02 17:52
devvvy3-Nov-02 17:52 
GeneralRe: table schema Pin
Mazdak3-Nov-02 19:37
Mazdak3-Nov-02 19:37 
GeneralRe: table schema Pin
devvvy3-Nov-02 19:49
devvvy3-Nov-02 19:49 
QuestionHow to implement printf(char *msg, ...)? Pin
Anonymous3-Nov-02 17:43
Anonymous3-Nov-02 17:43 

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.