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

C / C++ / MFC

 
QuestionRe: virtual detstruct question when multi derived Pin
Bob Stanneveld8-Nov-05 5:51
Bob Stanneveld8-Nov-05 5:51 
AnswerRe: virtual detstruct question when multi derived Pin
Maximilien8-Nov-05 6:40
Maximilien8-Nov-05 6:40 
GeneralRe: virtual detstruct question when multi derived Pin
Bob Stanneveld8-Nov-05 21:57
Bob Stanneveld8-Nov-05 21:57 
AnswerRe: virtual detstruct question when multi derived Pin
toxcct8-Nov-05 6:58
toxcct8-Nov-05 6:58 
GeneralRe: virtual detstruct question when multi derived Pin
Bob Stanneveld8-Nov-05 21:53
Bob Stanneveld8-Nov-05 21:53 
AnswerRe: virtual detstruct question when multi derived Pin
followait8-Nov-05 15:03
followait8-Nov-05 15:03 
GeneralRe: virtual detstruct question when multi derived Pin
Bob Stanneveld8-Nov-05 21:52
Bob Stanneveld8-Nov-05 21:52 
GeneralRe: virtual detstruct question when multi derived Pin
Blake Miller9-Nov-05 5:43
Blake Miller9-Nov-05 5:43 
Yeah, if you don't have virtual destructors, then your delete better be to a pointer of the proper class allocation.

For example, with ~BBB non-virtual, this will not crash:

CCC* pbbb = new CCC;<br />
delete pbbb;


So, if you can't afford virtual destructors, then you better cast your delete operation to a pointer of the correct type.

For example, with ~BBB non-virtual, this DOES NOT crash:

BBB* pbbb = new CCC;<br />
CCC* pccc = (CCC*)pbbb;<br />
delete pccc;

QuestionCRC-16 Convert to vb.Net Pin
RichardBerry8-Nov-05 3:55
RichardBerry8-Nov-05 3:55 
Questionclicking the titlebar Pin
bonosa8-Nov-05 3:54
bonosa8-Nov-05 3:54 
AnswerRe: clicking the titlebar Pin
Rage8-Nov-05 4:03
professionalRage8-Nov-05 4:03 
QuestionSetWindowText Problem in Release Version Pin
LittleYellowBird8-Nov-05 3:38
LittleYellowBird8-Nov-05 3:38 
AnswerRe: SetWindowText Problem in Release Version Pin
toxcct8-Nov-05 3:57
toxcct8-Nov-05 3:57 
GeneralRe: SetWindowText Problem in Release Version Pin
LittleYellowBird8-Nov-05 4:29
LittleYellowBird8-Nov-05 4:29 
AnswerRe: SetWindowText Problem in Release Version Pin
Rage8-Nov-05 3:57
professionalRage8-Nov-05 3:57 
QuestionRe: SetWindowText Problem in Release Version Pin
David Crow8-Nov-05 4:49
David Crow8-Nov-05 4:49 
GeneralRe: SetWindowText Problem in Release Version Pin
LittleYellowBird8-Nov-05 4:46
LittleYellowBird8-Nov-05 4:46 
AnswerRe: SetWindowText Problem in Release Version Pin
LittleYellowBird8-Nov-05 5:18
LittleYellowBird8-Nov-05 5:18 
GeneralRe: SetWindowText Problem in Release Version Pin
Rage8-Nov-05 5:54
professionalRage8-Nov-05 5:54 
GeneralRe: SetWindowText Problem in Release Version Pin
David Crow8-Nov-05 6:08
David Crow8-Nov-05 6:08 
GeneralRe: SetWindowText Problem in Release Version Pin
LittleYellowBird8-Nov-05 21:44
LittleYellowBird8-Nov-05 21:44 
GeneralRe: SetWindowText Problem in Release Version Pin
LittleYellowBird8-Nov-05 22:13
LittleYellowBird8-Nov-05 22:13 
GeneralRe: SetWindowText Problem in Release Version Pin
Rage15-Nov-05 21:18
professionalRage15-Nov-05 21:18 
GeneralRe: SetWindowText Problem in Release Version Pin
LittleYellowBird30-Nov-05 5:14
LittleYellowBird30-Nov-05 5:14 
Questioncannot open file(image) that saved Pin
sue8-Nov-05 3:01
sue8-Nov-05 3:01 

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.