Click here to Skip to main content
15,903,540 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMemory problem Pin
Anu_Bala31-May-06 18:20
Anu_Bala31-May-06 18:20 
AnswerRe: Memory problem Pin
Hamid_RT31-May-06 18:29
Hamid_RT31-May-06 18:29 
AnswerRe: Memory problem [modified] Pin
Nibu babu thomas31-May-06 19:05
Nibu babu thomas31-May-06 19:05 
QuestionRe: Memory problem [modified] Pin
David Crow1-Jun-06 4:20
David Crow1-Jun-06 4:20 
AnswerRe: Memory problem [modified] Pin
Nibu babu thomas1-Jun-06 17:23
Nibu babu thomas1-Jun-06 17:23 
GeneralRe: Memory problem [modified] Pin
David Crow2-Jun-06 2:56
David Crow2-Jun-06 2:56 
GeneralRe: Memory problem [modified] Pin
Nibu babu thomas2-Jun-06 3:03
Nibu babu thomas2-Jun-06 3:03 
AnswerRe: Memory problem Pin
Sarath C31-May-06 19:14
Sarath C31-May-06 19:14 
I suggest you to read Effective C++ 2nd Edition or the latest 3rd Edition.

If u r confused about pointers, read Pointers in C to know more about pointers.

as nibu said if u r much concerned about pointers, try using auto_pointers that is the best way to handle memory leaks. but I suggest that not to use auto_pointer because simply u can handle those allocation and deallocation of objects.
In MFC, it is not using any special allocation strategy, its all C++.

Code Complete 2 is a book which contains some best practices.

SaRath

"D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"
GeneralRe: Memory problem Pin
led mike31-May-06 19:32
led mike31-May-06 19:32 
GeneralRe: Memory problem [modified] Pin
Sarath C31-May-06 19:52
Sarath C31-May-06 19:52 
GeneralRe: Memory problem [modified] Pin
palbano1-Jun-06 4:50
palbano1-Jun-06 4:50 
QuestionVideo Card Memory [modified] Pin
Matthew R. Miller31-May-06 16:45
Matthew R. Miller31-May-06 16:45 
AnswerRe: Video Card Memory [modified] Pin
Hamid_RT31-May-06 18:44
Hamid_RT31-May-06 18:44 
Questionstack overflow -- in a thread? Pin
Peter Weyzen31-May-06 15:31
Peter Weyzen31-May-06 15:31 
AnswerRe: stack overflow -- in a thread? Pin
John M. Drescher31-May-06 16:04
John M. Drescher31-May-06 16:04 
QuestionRe: stack overflow -- in a thread? Pin
Peter Weyzen31-May-06 18:47
Peter Weyzen31-May-06 18:47 
AnswerRe: stack overflow -- in a thread? Pin
Sarath C31-May-06 20:01
Sarath C31-May-06 20:01 
QuestionHELP! Copy Access data to Excel Error Pin
Jenleonard31-May-06 14:15
Jenleonard31-May-06 14:15 
QuestionRe: HELP! Copy Access data to Excel Error Pin
David Crow1-Jun-06 4:25
David Crow1-Jun-06 4:25 
QuestionMultithreading with databases Pin
sergiuem31-May-06 14:02
sergiuem31-May-06 14:02 
AnswerRe: Multithreading with databases Pin
Peter Weyzen31-May-06 15:31
Peter Weyzen31-May-06 15:31 
AnswerRe: Multithreading with databases [modified] Pin
John M. Drescher31-May-06 16:07
John M. Drescher31-May-06 16:07 
QuestionRe: Multithreading with databases Pin
David Crow1-Jun-06 4:26
David Crow1-Jun-06 4:26 
QuestionReplace a part of text from text file Pin
Immunity1831-May-06 14:01
Immunity1831-May-06 14:01 
AnswerRe: Replace a part of text from text file Pin
_anil_31-May-06 14:27
_anil_31-May-06 14:27 

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.