Click here to Skip to main content
12,505,389 members (64,397 online)

C / C++ / MFC

 
AnswerRe: error C2228 "must have class/struct/union" Pin
Chris Losinger18-Dec-12 5:19
memberChris Losinger18-Dec-12 5:19 
AnswerRe: error C2228 "must have class/struct/union" Pin
Richard MacCutchan18-Dec-12 7:09
mvpRichard MacCutchan18-Dec-12 7:09 
AnswerRe: error C2228 "must have class/struct/union" Pin
Stefan_Lang21-Dec-12 1:59
memberStefan_Lang21-Dec-12 1:59 
QuestionCan we capture HD video using DirectShow C++/MFC .? Pin
mbatra3117-Dec-12 23:30
membermbatra3117-Dec-12 23:30 
QuestionCWinApp::OnFileNew failed ? Pin
Codzer17-Dec-12 19:23
memberCodzer17-Dec-12 19:23 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt17-Dec-12 21:33
memberJochen Arndt17-Dec-12 21:33 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Codzer18-Dec-12 2:48
memberCodzer18-Dec-12 2:48 
AnswerRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt18-Dec-12 3:03
memberJochen Arndt18-Dec-12 3:03 
QuestionLinked List Via Disk File Pin
imboared117-Dec-12 19:01
memberimboared117-Dec-12 19:01 
SuggestionRe: Linked List Via Disk File Pin
Richard MacCutchan17-Dec-12 22:15
mvpRichard MacCutchan17-Dec-12 22:15 
QuestionConfused with destructor Pin
Super Lloyd17-Dec-12 2:33
memberSuper Lloyd17-Dec-12 2:33 
AnswerRe: Confused with destructor Pin
Erudite_Eric17-Dec-12 4:54
memberErudite_Eric17-Dec-12 4:54 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 5:01
memberSuper Lloyd17-Dec-12 5:01 
GeneralRe: Confused with destructor Pin
jschell17-Dec-12 8:31
memberjschell17-Dec-12 8: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 16:59
memberSuper Lloyd17-Dec-12 16:59 
GeneralRe: Confused with destructor Pin
megaadam18-Dec-12 3:51
membermegaadam18-Dec-12 3:51 
GeneralRe: Confused with destructor Pin
Stefan_Lang19-Dec-12 5:33
memberStefan_Lang19-Dec-12 5:33 
GeneralRe: Confused with destructor Pin
Super Lloyd19-Dec-12 11:35
memberSuper Lloyd19-Dec-12 11:35 
GeneralRe: Confused with destructor Pin
Erudite_Eric20-Dec-12 23:20
memberErudite_Eric20-Dec-12 23:20 
AnswerRe: Confused with destructor Pin
Stephen Hewitt17-Dec-12 17:10
memberStephen Hewitt17-Dec-12 17:10 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 21:41
memberSuper Lloyd17-Dec-12 21:41 
Questionfuzzy logic code Pin
robot2916-Dec-12 3:10
memberrobot2916-Dec-12 3:10 
AnswerRe: fuzzy logic code Pin
Richard MacCutchan16-Dec-12 4:25
mvpRichard MacCutchan16-Dec-12 4:25 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:01
memberrobot2920-Dec-12 4:01 
GeneralRe: fuzzy logic code Pin
Richard MacCutchan20-Dec-12 4:16
mvpRichard MacCutchan20-Dec-12 4:16 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 5:26
memberrobot2920-Dec-12 5:26 
GeneralRe: fuzzy logic code Pin
Richard MacCutchan20-Dec-12 5:37
mvpRichard MacCutchan20-Dec-12 5:37 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 5:40
memberrobot2920-Dec-12 5:40 
GeneralRe: fuzzy logic code Pin
DavidCrow16-Dec-12 17:20
memberDavidCrow16-Dec-12 17:20 
AnswerRe: fuzzy logic code Pin
Joe Woodbury16-Dec-12 19:01
memberJoe Woodbury16-Dec-12 19:01 
AnswerRe: fuzzy logic code Pin
PecuniousPete16-Dec-12 20:51
memberPecuniousPete16-Dec-12 20:51 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:07
memberrobot2920-Dec-12 4:07 
AnswerRe: fuzzy logic code Pin
CPallini16-Dec-12 22:40
mvpCPallini16-Dec-12 22:40 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:10
memberrobot2920-Dec-12 4:10 
QuestionRe: fuzzy logic code Pin
CPallini20-Dec-12 6:25
mvpCPallini20-Dec-12 6:25 
AnswerRe: fuzzy logic code Pin
robot2920-Dec-12 6:47
memberrobot2920-Dec-12 6:47 
QuestionRe: fuzzy logic code Pin
CPallini20-Dec-12 8:27
mvpCPallini20-Dec-12 8:27 
AnswerRe: fuzzy logic code Pin
robot2920-Dec-12 9:17
memberrobot2920-Dec-12 9:17 
GeneralRe: fuzzy logic code Pin
CPallini20-Dec-12 10:12
mvpCPallini20-Dec-12 10:12 
GeneralRe: fuzzy logic code Pin
robot2921-Dec-12 1:19
memberrobot2921-Dec-12 1:19 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:11
memberrobot2920-Dec-12 4:11 
AnswerRe: fuzzy logic code Pin
April Fans19-Dec-12 16:43
memberApril Fans19-Dec-12 16:43 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:00
memberrobot2920-Dec-12 4:00 
QuestionHow do I select and pasted the mouse MFC loaded image. Pin
cemil.aksoyy15-Dec-12 12:26
membercemil.aksoyy15-Dec-12 12:26 
AnswerRe: How do I select and pasted the mouse MFC loaded image. Pin
Richard MacCutchan15-Dec-12 21:05
mvpRichard MacCutchan15-Dec-12 21:05 
Questionwhat is the purpose of & in constructors Pin
alaaan7315-Dec-12 7:49
memberalaaan7315-Dec-12 7:49 
AnswerRe: what is the purpose of & in constructors Pin
Maximilien15-Dec-12 14:29
memberMaximilien15-Dec-12 14:29 
GeneralRe: what is the purpose of & in constructors Pin
alaaan7318-Dec-12 4:43
memberalaaan7318-Dec-12 4:43 
AnswerRe: what is the purpose of & in constructors Pin
Erudite_Eric16-Dec-12 21:43
memberErudite_Eric16-Dec-12 21:43 
GeneralRe: what is the purpose of & in constructors Pin
alaaan7318-Dec-12 4:43
memberalaaan7318-Dec-12 4:43 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 27 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid