Click here to Skip to main content
15,914,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Some ambigituies with MFC CString class. Pin
chandu0047-Sep-07 19:26
chandu0047-Sep-07 19:26 
GeneralRe: Some ambigituies with MFC CString class. Pin
Hamed Musavi7-Sep-07 19:36
Hamed Musavi7-Sep-07 19:36 
GeneralRe: Some ambigituies with MFC CString class. Pin
Cedric Moonen7-Sep-07 22:57
Cedric Moonen7-Sep-07 22:57 
AnswerRe: Some ambiguities with MFC CString class. Pin
progDes7-Sep-07 20:26
progDes7-Sep-07 20:26 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi7-Sep-07 20:53
Hamed Musavi7-Sep-07 20:53 
AnswerRe: Some ambiguities with MFC CString class. Pin
progDes7-Sep-07 22:29
progDes7-Sep-07 22:29 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 4:11
Hamed Musavi8-Sep-07 4:11 
AnswerRe: Some ambiguities with MFC CString class. Pin
John R. Shaw7-Sep-07 22:07
John R. Shaw7-Sep-07 22:07 
I already know what the problem is from the first time I saw a ‘new’ statement. I finished a course on modern programming languages (MS Specific), so I assume you think it is magic. Wrong, it is only magic if the language supports automatic clean up! The ‘new’ operator allocates memory and it is up to you to free it; otherwise you will have a memory leak. In Microsoft’s new languages it is still a good idea to free them, because they go into a list somewhere, waiting to be released.

This is relates to a very old problem that I never understood. If you allocate the memory, then you need to free it. What is the problem?


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: Some ambiguities with MFC CString class. [modified] Pin
Hamed Musavi8-Sep-07 4:08
Hamed Musavi8-Sep-07 4:08 
AnswerRe: Some ambiguities with MFC CString class. Pin
bob169728-Sep-07 4:36
bob169728-Sep-07 4:36 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 4:41
Hamed Musavi8-Sep-07 4:41 
GeneralRe: Some ambiguities with MFC CString class. Pin
progDes8-Sep-07 6:05
progDes8-Sep-07 6:05 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 18:45
Hamed Musavi8-Sep-07 18:45 
AnswerRe: Some ambiguities with MFC CString class. Pin
Mark Salsbery8-Sep-07 6:42
Mark Salsbery8-Sep-07 6:42 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 9:04
Hamed Musavi8-Sep-07 9:04 
GeneralRe: Some ambiguities with MFC CString class. Pin
Mark Salsbery8-Sep-07 10:59
Mark Salsbery8-Sep-07 10:59 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 15:53
Hamed Musavi8-Sep-07 15:53 
GeneralRe: Some ambiguities with MFC CString class. Pin
Mark Salsbery9-Sep-07 6:51
Mark Salsbery9-Sep-07 6:51 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi9-Sep-07 18:11
Hamed Musavi9-Sep-07 18:11 
QuestionSOLVED: MFC: document-view problem [modified] Pin
progDes7-Sep-07 18:41
progDes7-Sep-07 18:41 
AnswerRe: MFC: document-view problem Pin
chandu0047-Sep-07 19:39
chandu0047-Sep-07 19:39 
GeneralRe: MFC: document-view problem Pin
progDes7-Sep-07 20:02
progDes7-Sep-07 20:02 
QuestionTreeview Question Pin
simotix7-Sep-07 17:00
simotix7-Sep-07 17:00 
AnswerRe: Treeview Question Pin
Michael Dunn7-Sep-07 17:24
sitebuilderMichael Dunn7-Sep-07 17:24 
GeneralRe: Treeview Question Pin
simotix7-Sep-07 19:04
simotix7-Sep-07 19:04 

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.