Click here to Skip to main content
15,922,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionANSI subclassing works, but Unicode does not Pin
mid=57415-Jul-07 13:03
mid=57415-Jul-07 13:03 
AnswerRe: ANSI subclassing works, but Unicode does not Pin
Mark Salsbery5-Jul-07 14:31
Mark Salsbery5-Jul-07 14:31 
AnswerRe: ANSI subclassing works, but Unicode does not [modified] Pin
mid=57415-Jul-07 14:54
mid=57415-Jul-07 14:54 
QuestionHow big is this structure? Pin
disruptor1085-Jul-07 12:00
disruptor1085-Jul-07 12:00 
AnswerRe: How big is this structure? [modified] Pin
Joe Woodbury5-Jul-07 12:10
professionalJoe Woodbury5-Jul-07 12:10 
AnswerRe: How big is this structure? Pin
Mark Salsbery5-Jul-07 12:11
Mark Salsbery5-Jul-07 12:11 
QuestionVirtual destructors Pin
tom groezer5-Jul-07 9:53
tom groezer5-Jul-07 9:53 
AnswerRe: Virtual destructors Pin
Steve Echols5-Jul-07 10:04
Steve Echols5-Jul-07 10:04 
class FastCar : public Car
{
public:
   virtual ~FastCar() { delete itsTurbo; }

private:
   Turbo* itsTurbo;
}

FastCar* ferrari = new FastCar();
Car* car = ferrari;
delete car;


I think without the virtual destructor, FastCar's destructor would never get called if it's deleted using a pointer to a base class.


- S
50 cups of coffee and you know it's on!

GeneralRe: Virtual destructors Pin
mid=57416-Jul-07 1:40
mid=57416-Jul-07 1:40 
GeneralRe: Virtual destructors Pin
Steve Echols6-Jul-07 1:59
Steve Echols6-Jul-07 1:59 
AnswerRe: Virtual destructors Pin
David Crow5-Jul-07 10:13
David Crow5-Jul-07 10:13 
AnswerRe: Virtual destructors Pin
Cyrilix5-Jul-07 12:25
Cyrilix5-Jul-07 12:25 
GeneralRe: Virtual destructors Pin
tom groezer5-Jul-07 20:02
tom groezer5-Jul-07 20:02 
GeneralRe: Virtual destructors Pin
mid=57416-Jul-07 1:34
mid=57416-Jul-07 1:34 
GeneralRe: Virtual destructors Pin
David Crow6-Jul-07 2:41
David Crow6-Jul-07 2:41 
QuestionReading text Pin
tom groezer5-Jul-07 9:32
tom groezer5-Jul-07 9:32 
AnswerRe: Reading text Pin
David Crow5-Jul-07 10:15
David Crow5-Jul-07 10:15 
GeneralRe: Reading text Pin
sheshidar5-Jul-07 23:20
sheshidar5-Jul-07 23:20 
GeneralRe: Reading text Pin
Hamid_RT6-Jul-07 1:05
Hamid_RT6-Jul-07 1:05 
GeneralRe: Reading text Pin
David Crow6-Jul-07 2:39
David Crow6-Jul-07 2:39 
QuestionHeapWalk and PROCESS_HEAP_ENTRY_MOVEABLE Pin
Blake Miller5-Jul-07 7:52
Blake Miller5-Jul-07 7:52 
Questionhow to develop themes Pin
pritthi5-Jul-07 7:22
pritthi5-Jul-07 7:22 
QuestionRe: how to develop themes Pin
David Crow5-Jul-07 7:32
David Crow5-Jul-07 7:32 
AnswerRe: how to develop themes Pin
led mike5-Jul-07 8:14
led mike5-Jul-07 8:14 
AnswerRe: how to develop themes Pin
Perspx5-Jul-07 18:42
Perspx5-Jul-07 18: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.