Click here to Skip to main content
15,502,871 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Codzer18-Dec-12 3:48
Codzer18-Dec-12 3:48 
AnswerRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt18-Dec-12 4:03
professionalJochen Arndt18-Dec-12 4:03 
QuestionLinked List Via Disk File Pin
imboared117-Dec-12 20:01
imboared117-Dec-12 20:01 
SuggestionRe: Linked List Via Disk File Pin
Richard MacCutchan17-Dec-12 23:15
mveRichard MacCutchan17-Dec-12 23:15 
QuestionConfused with destructor Pin
Super Lloyd17-Dec-12 3:33
Super Lloyd17-Dec-12 3:33 
AnswerRe: Confused with destructor Pin
Erudite_Eric17-Dec-12 5:54
Erudite_Eric17-Dec-12 5:54 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 6:01
Super Lloyd17-Dec-12 6:01 
GeneralRe: Confused with destructor Pin
jschell17-Dec-12 9:31
jschell17-Dec-12 9:31 
Super Lloyd wrote:
but I didn't use new...


That has nothing to do with it.

The use of 'new' is specific to a certain kind of finite resource (memory).
Your class on the other hand must manage ALL of the resources that it owns. So it must clean it up.
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 17:59
Super Lloyd17-Dec-12 17:59 
GeneralRe: Confused with destructor Pin
megaadam18-Dec-12 4:51
professionalmegaadam18-Dec-12 4:51 
GeneralRe: Confused with destructor Pin
Stefan_Lang19-Dec-12 6:33
mveStefan_Lang19-Dec-12 6:33 
GeneralRe: Confused with destructor Pin
Super Lloyd19-Dec-12 12:35
Super Lloyd19-Dec-12 12:35 
GeneralRe: Confused with destructor Pin
Erudite_Eric21-Dec-12 0:20
Erudite_Eric21-Dec-12 0:20 
AnswerRe: Confused with destructor Pin
Stephen Hewitt17-Dec-12 18:10
Stephen Hewitt17-Dec-12 18:10 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 22:41
Super Lloyd17-Dec-12 22:41 
Questionfuzzy logic code Pin
robot2916-Dec-12 4:10
robot2916-Dec-12 4:10 
AnswerRe: fuzzy logic code Pin
Richard MacCutchan16-Dec-12 5:25
mveRichard MacCutchan16-Dec-12 5:25 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 5:01
robot2920-Dec-12 5:01 
GeneralRe: fuzzy logic code Pin
Richard MacCutchan20-Dec-12 5:16
mveRichard MacCutchan20-Dec-12 5:16 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 6:26
robot2920-Dec-12 6:26 
GeneralRe: fuzzy logic code Pin
Richard MacCutchan20-Dec-12 6:37
mveRichard MacCutchan20-Dec-12 6:37 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 6:40
robot2920-Dec-12 6:40 
GeneralRe: fuzzy logic code Pin
David Crow16-Dec-12 18:20
David Crow16-Dec-12 18:20 
AnswerRe: fuzzy logic code Pin
Joe Woodbury16-Dec-12 20:01
professionalJoe Woodbury16-Dec-12 20:01 
AnswerRe: fuzzy logic code Pin
PecuniousPete16-Dec-12 21:51
PecuniousPete16-Dec-12 21:51 

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.