Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFile Saving Problem, ofstream. Pin
tomek1827-Jul-05 1:22
tomek1827-Jul-05 1:22 
GeneralRe: File Saving Problem, ofstream. Pin
Bob Stanneveld27-Jul-05 1:41
Bob Stanneveld27-Jul-05 1:41 
QuestionDialogBox in a DLL? Pin
Larsson27-Jul-05 1:07
Larsson27-Jul-05 1:07 
AnswerRe: DialogBox in a DLL? Pin
Ray Kinsella27-Jul-05 2:24
Ray Kinsella27-Jul-05 2:24 
GeneralRe: DialogBox in a DLL? Pin
Larsson27-Jul-05 2:48
Larsson27-Jul-05 2:48 
Generalstrangely modeles dialog box working even when i didnt destroy object Pin
sayup27-Jul-05 1:02
sayup27-Jul-05 1:02 
GeneralRe: strangely modeles dialog box working even when i didnt destroy object Pin
Rage27-Jul-05 1:35
professionalRage27-Jul-05 1:35 
GeneralRe: strangely modeles dialog box working even when i didnt destroy object Pin
sayup27-Jul-05 2:27
sayup27-Jul-05 2:27 
hello,
no i havent done anything such as delete d in my program.whatever code for modeless dialog i have written i have told you.I havent also overiden PostNcDestroy().So as per your suggestion i should overide the virtual function PostNcDestroy()in the class of respective dialog resource.
and code would be
midialog::PostNcDestroy()
{
delete this;
CDialog::PostNcDestroy()/*coz mu dialog class midialog is derived from CDialog and not from CResizableDailog as in your code snippet*/
}

is this ok?
one more doubt,is there no need to overide OnClose(0 with DestroyWindow()?are you sure?and we are writing delete this so isn't d=new midialog(this);necessary?

sorry askig same questions but since i am a begineer i feel the need to get things clear.
thanks
plz reply

sayali
GeneralRe: strangely modeles dialog box working even when i didnt destroy object Pin
sayup27-Jul-05 18:56
sayup27-Jul-05 18:56 
GeneralSSL security for website Pin
Sushant Patil27-Jul-05 0:55
Sushant Patil27-Jul-05 0:55 
GeneralCDialogBar and CFrameWnd Pin
Maverick27-Jul-05 0:43
Maverick27-Jul-05 0:43 
GeneralRe: CDialogBar and CFrameWnd Pin
James R. Twine27-Jul-05 3:08
James R. Twine27-Jul-05 3:08 
GeneralFTP Problem Pin
Richard Hudson27-Jul-05 0:06
Richard Hudson27-Jul-05 0:06 
GeneralRe: FTP Problem Pin
mark novak27-Jul-05 1:21
mark novak27-Jul-05 1:21 
GeneralCListCtrl / Select item Pin
P-Rex27-Jul-05 0:03
P-Rex27-Jul-05 0:03 
GeneralRe: CListCtrl / Select item Pin
mark novak27-Jul-05 1:10
mark novak27-Jul-05 1:10 
GeneralRe: CListCtrl / Select item Pin
Marc Soleda27-Jul-05 1:18
Marc Soleda27-Jul-05 1:18 
GeneralRe: command linens error MIDL1004 Pin
Anonymous27-Jul-05 2:57
Anonymous27-Jul-05 2:57 
GeneralRe: command linens error MIDL1004 Pin
toxcct27-Jul-05 3:57
toxcct27-Jul-05 3:57 
GeneralTree control selection Pin
dittygrail26-Jul-05 23:28
dittygrail26-Jul-05 23:28 
GeneralRe: Tree control selection Pin
mark novak27-Jul-05 1:00
mark novak27-Jul-05 1:00 
GeneralRe: Tree control selection Pin
Anonymous27-Jul-05 2:58
Anonymous27-Jul-05 2:58 
GeneralBrowse dialog question Pin
Mukhan26-Jul-05 23:19
Mukhan26-Jul-05 23:19 
GeneralRe: Browse dialog question Pin
mark novak27-Jul-05 0:59
mark novak27-Jul-05 0:59 
GeneralRe: Browse dialog question Pin
Mukhan27-Jul-05 1:15
Mukhan27-Jul-05 1:15 

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.