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

C / C++ / MFC

 
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 
AnswerRe: Do I need to delete? Pin
CPallini14-Jan-07 3:21
mveCPallini14-Jan-07 3:21 
gumi_r@msn.com wrote:
myClass &a=*new myClass(whatever);
myClass &b=a;


since you've dynamically allocated memory for an istance of myClass, then you have to delete it somewhere. You can call either delete &b or delete &a (of course don't call both).

Cheers
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

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
mve#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
mve#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
mve#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
mve#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
mve#realJSOP13-Jan-07 23:46 
GeneralRe: CArray Compaliation Error C2143: syntax error : missing ';' before '&lt;' Pin
sdancer7514-Jan-07 6:28
sdancer7514-Jan-07 6:28 

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.