Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream problem Pin
CPallini14-Jan-07 10:47
mveCPallini14-Jan-07 10:47 
GeneralRe: ifstream problem Pin
gxkendall14-Jan-07 11:22
gxkendall14-Jan-07 11:22 
GeneralRe: ifstream problem Pin
Michael Dunn14-Jan-07 14:21
sitebuilderMichael Dunn14-Jan-07 14:21 
GeneralRe: ifstream problem Pin
PJ Arends14-Jan-07 15:00
professionalPJ Arends14-Jan-07 15:00 
GeneralRe: ifstream problem Pin
Michael Dunn14-Jan-07 15:17
sitebuilderMichael Dunn14-Jan-07 15:17 
GeneralRe: ifstream problem Pin
CPallini15-Jan-07 9:15
mveCPallini15-Jan-07 9:15 
GeneralRe: ifstream problem Pin
CPallini15-Jan-07 9:14
mveCPallini15-Jan-07 9:14 
QuestionDo I need to delete? Pin
gumi_r@msn.com14-Jan-07 2:52
gumi_r@msn.com14-Jan-07 2:52 
Hi all,

my question is if I define a class myClass with destructor, assign operator (=) and copy constructor, etc etc.

If I later use my class like this:

myClass &a=*new myClass(whatever);
myClass &b=a;

Do I have to explicitly delete b? I've read you should only delete a class if you have instantiated it with a new. I know that behind the curtains b is created with a new call inside the dll, but do I have to delete it explicitly from my app?

thanks
AnswerRe: Do I need to delete? Pin
CPallini14-Jan-07 3:21
mveCPallini14-Jan-07 3:21 
GeneralRe: Do I need to delete? Pin
gumi_r@msn.com14-Jan-07 3:52
gumi_r@msn.com14-Jan-07 3:52 
GeneralRe: Do I need to delete? Pin
CPallini14-Jan-07 5:48
mveCPallini14-Jan-07 5:48 
GeneralRe: Do I need to delete? Pin
Stephen Hewitt14-Jan-07 15:35
Stephen Hewitt14-Jan-07 15:35 
GeneralRe: Do I need to delete? Pin
CPallini15-Jan-07 9:22
mveCPallini15-Jan-07 9:22 
QuestionHow to give a File New command from inside a program Pin
IlanTal14-Jan-07 0:47
IlanTal14-Jan-07 0:47 
AnswerRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 1:06
professional#realJSOP14-Jan-07 1:06 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 1:39
IlanTal14-Jan-07 1:39 
GeneralRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 2:18
professional#realJSOP14-Jan-07 2:18 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 2:33
IlanTal14-Jan-07 2:33 
GeneralRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 2:53
professional#realJSOP14-Jan-07 2:53 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 3:11
IlanTal14-Jan-07 3:11 
GeneralRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 4:11
professional#realJSOP14-Jan-07 4:11 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 4:45
IlanTal14-Jan-07 4:45 
GeneralRe: How to give a File New command from inside a program Pin
PJ Arends14-Jan-07 7:16
professionalPJ Arends14-Jan-07 7:16 
QuestionCArray Compaliation Error C2143: syntax error : missing ';' before '<' Pin
sdancer7513-Jan-07 23:34
sdancer7513-Jan-07 23:34 
AnswerRe: CArray Compaliation Error C2143: syntax error : missing ';' before '&lt;' [modified] Pin
#realJSOP13-Jan-07 23:46
professional#realJSOP13-Jan-07 23:46 

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.