Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: how does a CDialog derived window notify the parent it was closed? Pin
David Crow30-Mar-06 9:39
David Crow30-Mar-06 9:39 
AnswerRe: how does a CDialog derived window notify the parent it was closed? Pin
ns30-Mar-06 10:12
ns30-Mar-06 10:12 
GeneralRe: how does a CDialog derived window notify the parent it was closed? Pin
David Crow30-Mar-06 10:27
David Crow30-Mar-06 10:27 
GeneralRe: how does a CDialog derived window notify the parent it was closed? Pin
ns30-Mar-06 10:41
ns30-Mar-06 10:41 
Question'buffer' was corrupted? Pin
Yonggoo30-Mar-06 8:50
Yonggoo30-Mar-06 8:50 
QuestionRe: 'buffer' was corrupted? Pin
David Crow30-Mar-06 9:32
David Crow30-Mar-06 9:32 
QuestionRe: 'buffer' was corrupted? Pin
Sam Hobbs20-Jun-07 10:30
Sam Hobbs20-Jun-07 10:30 
QuestionIs it safe to perform "delete this" in class member functions. Pin
Ajax9530-Mar-06 8:39
Ajax9530-Mar-06 8:39 
I see "delete this" in a lot of code. For example, in an SDI application, when user clicks on a button on the view, the application needs to swap to a different view. so it will delete the current view and create a new view, "delete this" will be performed somewhere near to the end of the message handler of the button, which is a member function. What is the life time of all member variables at this point? Are they all destructed? Does this mean if I'm trying to acces those variables right after the "delete this", the application might crash?

Thanks!
AnswerRe: Is it safe to perform "delete this" in class member functions. Pin
David Crow30-Mar-06 9:29
David Crow30-Mar-06 9:29 
AnswerRe: Is it safe to perform "delete this" in class member functions. Pin
Stephen Hewitt30-Mar-06 11:16
Stephen Hewitt30-Mar-06 11:16 
QuestionAdd items in list box Pin
celllllllll30-Mar-06 7:28
celllllllll30-Mar-06 7:28 
AnswerRe: Add items in list box Pin
David Crow30-Mar-06 7:34
David Crow30-Mar-06 7:34 
GeneralRe: Add items in list box Pin
celllllllll30-Mar-06 7:59
celllllllll30-Mar-06 7:59 
GeneralRe: Add items in list box Pin
David Crow30-Mar-06 8:06
David Crow30-Mar-06 8:06 
GeneralRe: Add items in list box Pin
celllllllll30-Mar-06 8:09
celllllllll30-Mar-06 8:09 
AnswerRe: Add items in list box Pin
Maximilien30-Mar-06 7:37
Maximilien30-Mar-06 7:37 
GeneralRe: Add items in list box Pin
celllllllll30-Mar-06 8:07
celllllllll30-Mar-06 8:07 
GeneralRe: Add items in list box Pin
David Crow30-Mar-06 9:09
David Crow30-Mar-06 9:09 
GeneralRe: Add items in list box Pin
celllllllll30-Mar-06 10:45
celllllllll30-Mar-06 10:45 
AnswerRe: Add items in list box Pin
Hamid_RT30-Mar-06 17:44
Hamid_RT30-Mar-06 17:44 
QuestionTesting if a file exists Pin
Rage30-Mar-06 7:08
professionalRage30-Mar-06 7:08 
AnswerRe: Testing if a file exists Pin
David Crow30-Mar-06 7:35
David Crow30-Mar-06 7:35 
AnswerRe: Testing if a file exists Pin
Ajax9530-Mar-06 8:41
Ajax9530-Mar-06 8:41 
QuestionRe: Testing if a file exists Pin
David Crow30-Mar-06 9:11
David Crow30-Mar-06 9:11 
AnswerRe: Testing if a file exists Pin
toxcct30-Mar-06 20:29
toxcct30-Mar-06 20:29 

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.