Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCRecordset old data problem Pin
eyalle23-Jun-10 0:29
eyalle23-Jun-10 0:29 
AnswerRe: CRecordset old data problem Pin
loyal ginger23-Jun-10 1:52
loyal ginger23-Jun-10 1:52 
GeneralRe: CRecordset old data problem Pin
eyalle23-Jun-10 2:14
eyalle23-Jun-10 2:14 
QuestionRe: CRecordset old data problem Pin
David Crow23-Jun-10 3:48
David Crow23-Jun-10 3:48 
QuestionPure virtual destructor ? Pin
krishna_CP23-Jun-10 0:17
krishna_CP23-Jun-10 0:17 
AnswerRe: Pure virtual destructor ? Pin
CPallini23-Jun-10 0:40
mveCPallini23-Jun-10 0:40 
AnswerRe: Pure virtual destructor ? Pin
Chris Losinger23-Jun-10 1:30
professionalChris Losinger23-Jun-10 1:30 
AnswerRe: Pure virtual destructor ? Pin
Aescleal23-Jun-10 6:52
Aescleal23-Jun-10 6:52 
A pure virtual destructor is any destructor marked as virtual with = 0 after it's signature, e.g:

class T
{
    public:
        virtual ~T() = 0;
};


Making a destructor pure virtual means very little more than making the destructor virtual (and you do that to make sure the correct destructor is called when you delete an object through a base class pointer). The additional bit is that it means the derived class has to define it's own destructor and not rely on the base class one.

One additional wrinkle is that all pure virtual destructors have to have an implementation, unlike normal pure virtual member functions which don't have to have one.

Cheers,

Ash
QuestionMainframe loses focus with modeless dialogs in MFC application Pin
David Ayllon23-Jun-10 0:06
David Ayllon23-Jun-10 0:06 
AnswerRe: Mainframe loses focus with modeless dialogs in MFC application Pin
Richard MacCutchan23-Jun-10 3:05
mveRichard MacCutchan23-Jun-10 3:05 
GeneralRe: Mainframe loses focus with modeless dialogs in MFC application Pin
manchukuo23-Jun-10 16:31
manchukuo23-Jun-10 16:31 
GeneralRe: Mainframe loses focus with modeless dialogs in MFC application Pin
Richard MacCutchan23-Jun-10 21:45
mveRichard MacCutchan23-Jun-10 21:45 
QuestionRe: Mainframe loses focus with modeless dialogs in MFC application Pin
David Ayllon23-Jun-10 23:46
David Ayllon23-Jun-10 23:46 
Questionthreads Pin
jt_snjy0722-Jun-10 23:42
jt_snjy0722-Jun-10 23:42 
AnswerRe: threads Pin
CPallini22-Jun-10 23:55
mveCPallini22-Jun-10 23:55 
AnswerRe: threads Pin
«_Superman_»23-Jun-10 0:09
professional«_Superman_»23-Jun-10 0:09 
AnswerRe: threads Pin
El Corazon23-Jun-10 6:36
El Corazon23-Jun-10 6:36 
AnswerRe: threads Pin
Aescleal23-Jun-10 6:50
Aescleal23-Jun-10 6:50 
AnswerRe: threads Pin
Stephen Hewitt1-Jul-10 18:54
Stephen Hewitt1-Jul-10 18:54 
QuestionC calling convention importance Pin
rupeshkp72822-Jun-10 23:13
rupeshkp72822-Jun-10 23:13 
AnswerRe: C calling convention importance Pin
Cedric Moonen22-Jun-10 23:52
Cedric Moonen22-Jun-10 23:52 
GeneralRe: C calling convention importance Pin
rupeshkp72823-Jun-10 1:29
rupeshkp72823-Jun-10 1:29 
QuestionIs time for QT? Pin
lxkjlzz22-Jun-10 22:34
lxkjlzz22-Jun-10 22:34 
AnswerNah, ... Pin
CPallini22-Jun-10 23:15
mveCPallini22-Jun-10 23:15 
GeneralRe: Nah, ... Pin
Emilio Garavaglia23-Jun-10 1:40
Emilio Garavaglia23-Jun-10 1:40 

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.