Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionText Length Pin
locoone4-Jul-06 14:19
locoone4-Jul-06 14:19 
AnswerRe: Text Length Pin
Chris Losinger4-Jul-06 14:30
professionalChris Losinger4-Jul-06 14:30 
GeneralRe: Text Length Pin
locoone4-Jul-06 14:32
locoone4-Jul-06 14:32 
GeneralRe: Text Length Pin
Chris Losinger4-Jul-06 15:34
professionalChris Losinger4-Jul-06 15:34 
QuestionSyntax related question [modified] Pin
Jay034-Jul-06 11:37
Jay034-Jul-06 11:37 
AnswerRe: Syntax related question Pin
Jörgen Sigvardsson4-Jul-06 11:47
Jörgen Sigvardsson4-Jul-06 11:47 
Questionvirtual destructors [modified] Pin
Jay034-Jul-06 10:59
Jay034-Jul-06 10:59 
AnswerRe: virtual destructors Pin
Joe Woodbury4-Jul-06 11:13
professionalJoe Woodbury4-Jul-06 11:13 
The virtual destructor allows the destructor of derived classes to be called when deleting the instance through the base class.

In other words, an instance of Ball can be assigned to an ObjectRoot pointer:

ObjectRoot* pBase = (ObjectRoot*) new Ball;

and then deleted:

delete pBase;

The virtual destructor ensures that Ball's destructor will be called.

Often, destructors do nothing, but the empty virtual implementation is left just in case something later is added.

Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

AnswerRe: virtual destructors Pin
Jörgen Sigvardsson4-Jul-06 12:02
Jörgen Sigvardsson4-Jul-06 12:02 
GeneralRe: virtual destructors Pin
Jay034-Jul-06 12:39
Jay034-Jul-06 12:39 
GeneralRe: virtual destructors Pin
Jörgen Sigvardsson4-Jul-06 13:39
Jörgen Sigvardsson4-Jul-06 13:39 
GeneralRe: virtual destructors [modified] Pin
Jay034-Jul-06 14:25
Jay034-Jul-06 14:25 
GeneralRe: virtual destructors [modified*2] Pin
Jörgen Sigvardsson4-Jul-06 14:27
Jörgen Sigvardsson4-Jul-06 14:27 
GeneralRe: virtual destructors [modified*2] Pin
Jay034-Jul-06 14:50
Jay034-Jul-06 14:50 
GeneralRe: virtual destructors Pin
Jörgen Sigvardsson4-Jul-06 14:53
Jörgen Sigvardsson4-Jul-06 14:53 
QuestionAdding scripting language to existing application ? Pin
Maximilien4-Jul-06 7:57
Maximilien4-Jul-06 7:57 
AnswerRe: Adding scripting language to existing application ? Pin
Chris Losinger4-Jul-06 8:09
professionalChris Losinger4-Jul-06 8:09 
Questionnamespace across multiple include files in library Pin
Joel Becker4-Jul-06 7:53
Joel Becker4-Jul-06 7:53 
AnswerRe: namespace across multiple include files in library Pin
Jun Du4-Jul-06 9:44
Jun Du4-Jul-06 9:44 
GeneralRe: namespace across multiple include files in library Pin
Joel Becker4-Jul-06 10:16
Joel Becker4-Jul-06 10:16 
GeneralRe: namespace across multiple include files in library Pin
Jun Du4-Jul-06 14:48
Jun Du4-Jul-06 14:48 
AnswerRe: namespace across multiple include files in library Pin
Joel Becker4-Jul-06 10:13
Joel Becker4-Jul-06 10:13 
Question.hh extension header files [modified] Pin
Jay034-Jul-06 7:09
Jay034-Jul-06 7:09 
AnswerRe: .hh extension header files Pin
toxcct4-Jul-06 7:31
toxcct4-Jul-06 7:31 
GeneralRe: .hh extension header files [modified] Pin
Jay034-Jul-06 7:42
Jay034-Jul-06 7:42 

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.