Click here to Skip to main content
15,925,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuestion about OnNewDocument() Pin
Nish Nishant5-Apr-02 18:48
sitebuilderNish Nishant5-Apr-02 18:48 
GeneralRe: Question about OnNewDocument() Pin
Mazdak5-Apr-02 18:52
Mazdak5-Apr-02 18:52 
GeneralRe: Question about OnNewDocument() Pin
Nish Nishant5-Apr-02 19:03
sitebuilderNish Nishant5-Apr-02 19:03 
GeneralRe: Question about OnNewDocument() Pin
Mazdak5-Apr-02 19:07
Mazdak5-Apr-02 19:07 
GeneralRe: Question about OnNewDocument() Pin
Nish Nishant5-Apr-02 19:27
sitebuilderNish Nishant5-Apr-02 19:27 
GeneralRe: Question about OnNewDocument() Pin
Andrew Peace6-Apr-02 9:49
Andrew Peace6-Apr-02 9:49 
GeneralRe: Question about OnNewDocument() - The plot thickens!!! Pin
Nish Nishant5-Apr-02 18:59
sitebuilderNish Nishant5-Apr-02 18:59 
GeneralRe: Question about OnNewDocument() - The plot thickens!!! - some light at last!!! Pin
Nish Nishant5-Apr-02 19:01
sitebuilderNish Nishant5-Apr-02 19:01 
void CFormDesignerDoc::DeleteContents() 
{
	// TODO: Add your specialized code here and/or call the base class
	AfxMessageBox("hmmm");
	CDocument::DeleteContents();
}


This shocked me to say the least. The destructor never gets called but this curious function does get called. I guess I'll have to clean up my document here.

Though I am still puzzled as to why the destructor never got called.

Nish



If I am awake and my eyes are closed, it does not necessarily mean that I am thinking of naked women.


GeneralRe: Question about OnNewDocument() - The plot thickens!!! - some light at last!!! Pin
Roger Wright5-Apr-02 19:27
professionalRoger Wright5-Apr-02 19:27 
GeneralRe: Question about OnNewDocument() - The plot thickens!!! - some light at last!!! Pin
Nish Nishant5-Apr-02 19:32
sitebuilderNish Nishant5-Apr-02 19:32 
GeneralRe: Question about OnNewDocument() - The plot thickens!!! - some light at last!!! Pin
Roger Wright5-Apr-02 20:08
professionalRoger Wright5-Apr-02 20:08 
GeneralRe: Question about OnNewDocument() Pin
Michael P Butler5-Apr-02 22:59
Michael P Butler5-Apr-02 22:59 
GeneralRe: Question about OnNewDocument() Pin
Nish Nishant5-Apr-02 23:37
sitebuilderNish Nishant5-Apr-02 23:37 
GeneralRe: Question about OnNewDocument() Pin
Michael P Butler5-Apr-02 23:39
Michael P Butler5-Apr-02 23:39 
GeneralRe: Question about OnNewDocument() Pin
Nish Nishant6-Apr-02 0:03
sitebuilderNish Nishant6-Apr-02 0:03 
GeneralRe: Question about OnNewDocument() Pin
Mazdak6-Apr-02 4:39
Mazdak6-Apr-02 4:39 
GeneralObject Browser Pin
Mangesh Sardesai5-Apr-02 16:59
Mangesh Sardesai5-Apr-02 16:59 
GeneralEmbedded buttons in CListCtrl Pin
5-Apr-02 14:34
suss5-Apr-02 14:34 
GeneralRe: Embedded buttons in CListCtrl Pin
Michael Dunn5-Apr-02 16:23
sitebuilderMichael Dunn5-Apr-02 16:23 
GeneralMFC bitmaps problem Pin
ejw5-Apr-02 13:43
ejw5-Apr-02 13:43 
GeneralRe: MFC bitmaps problem Pin
Christian Graus5-Apr-02 14:25
protectorChristian Graus5-Apr-02 14:25 
GeneralThank you so much! Pin
ejw5-Apr-02 14:43
ejw5-Apr-02 14:43 
Generalget char in console prob Pin
EvilSource5-Apr-02 12:53
EvilSource5-Apr-02 12:53 
GeneralRe: get char in console prob Pin
Dominik Reichl5-Apr-02 20:50
Dominik Reichl5-Apr-02 20:50 
Generalok... (DirectX)(WTL)(MFC) Pin
SilverShalkin5-Apr-02 12:51
SilverShalkin5-Apr-02 12:51 

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.