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

C / C++ / MFC

 
QuestionRe: pointer of class instance Pin
rp_suman17-Mar-08 1:13
rp_suman17-Mar-08 1:13 
QuestionRe: pointer of class instance Pin
Maxwell Chen17-Mar-08 1:30
Maxwell Chen17-Mar-08 1:30 
GeneralRe: pointer of class instance Pin
rp_suman17-Mar-08 3:33
rp_suman17-Mar-08 3:33 
QuestionRe: pointer of class instance Pin
David Crow17-Mar-08 4:35
David Crow17-Mar-08 4:35 
GeneralRe: pointer of class instance Pin
rp_suman17-Mar-08 16:49
rp_suman17-Mar-08 16:49 
GeneralMemory leak in OnNewDocument() Pin
rp_suman16-Mar-08 22:39
rp_suman16-Mar-08 22:39 
GeneralRe: Memory leak in OnNewDocument() Pin
Cedric Moonen16-Mar-08 22:55
Cedric Moonen16-Mar-08 22:55 
GeneralRe: Memory leak in OnNewDocument() Pin
Rajkumar R16-Mar-08 23:51
Rajkumar R16-Mar-08 23:51 
If you are using SDI, override the CDocument::DeleteContents() and do the cleanup as I remember correctly if you are calling file new command OnCloseDocument will not be called, instead OnNewDocument. And try debugging whether the object is deleted at OnCloseDocument. As other users replied to initialize NULL, you have to intialize to NULL in constructor rather than OnNewDocument() as there are cases OnNewDocument called twice. When ever you delete then set to NULL;
QuestionRe: Memory leak in OnNewDocument() Pin
David Crow17-Mar-08 4:37
David Crow17-Mar-08 4:37 
GeneralRe: Memory leak in OnNewDocument() [modified] Pin
rp_suman17-Mar-08 14:56
rp_suman17-Mar-08 14:56 
GeneralRe: Memory leak in OnNewDocument() Pin
David Crow18-Mar-08 3:15
David Crow18-Mar-08 3:15 
QuestionHow to retrieve date,day ,hour ,minutes,seconds from DateTime Control?? Pin
Ashish Chauhan16-Mar-08 21:05
Ashish Chauhan16-Mar-08 21:05 
AnswerRe: How to retrieve date,day ,hour ,minutes,seconds from DateTime Control?? Pin
Ashish Chauhan16-Mar-08 21:06
Ashish Chauhan16-Mar-08 21:06 
GeneralRe: How to retrieve date,day ,hour ,minutes,seconds from DateTime Control?? Pin
Rajkumar R16-Mar-08 21:22
Rajkumar R16-Mar-08 21:22 
AnswerRe: How to retrieve date,day ,hour ,minutes,seconds from DateTime Control?? Pin
David Crow17-Mar-08 4:38
David Crow17-Mar-08 4:38 
GeneralCreating a Number Spiral Matrix [VC++] Pin
AnkurS16-Mar-08 20:17
AnkurS16-Mar-08 20:17 
GeneralRe: Creating a Number Spiral Matrix [VC++] Pin
Maxwell Chen16-Mar-08 20:25
Maxwell Chen16-Mar-08 20:25 
GeneralRe: Creating a Number Spiral Matrix [VC++] Pin
Cedric Moonen16-Mar-08 21:08
Cedric Moonen16-Mar-08 21:08 
GeneralRe: Creating a Number Spiral Matrix [VC++] Pin
Himanshu Joshi16-Mar-08 22:06
Himanshu Joshi16-Mar-08 22:06 
GeneralRe: Creating a Number Spiral Matrix [VC++] Pin
CPallini16-Mar-08 22:24
mveCPallini16-Mar-08 22:24 
GeneralRe: Creating a Number Spiral Matrix [VC++] Pin
Maxwell Chen16-Mar-08 22:35
Maxwell Chen16-Mar-08 22:35 
GeneralRe: Creating a Number Spiral Matrix [VC++] Pin
Randor 17-Mar-08 4:22
professional Randor 17-Mar-08 4:22 
Generaldo{} while (0) Pin
flyingxu16-Mar-08 19:32
flyingxu16-Mar-08 19:32 
GeneralRe: do{} while (0) Pin
Maxwell Chen16-Mar-08 20:23
Maxwell Chen16-Mar-08 20:23 
GeneralRe: do{} while (0) Pin
BadKarma17-Mar-08 0:05
BadKarma17-Mar-08 0:05 

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.