Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to retrieve the application running in a remote computer? Pin
vedhapsg12-Jan-07 23:09
vedhapsg12-Jan-07 23:09 
AnswerRe: how to retrieve the application running in a remote computer? Pin
Cristian Amarie13-Jan-07 4:29
Cristian Amarie13-Jan-07 4:29 
QuestionOnClose Call Multiple Times Pin
User 1278212-Jan-07 21:16
User 1278212-Jan-07 21:16 
AnswerRe: OnClose Call Multiple Times Pin
CPallini12-Jan-07 21:48
mveCPallini12-Jan-07 21:48 
AnswerRe: OnClose Call Multiple Times Pin
Hadi Dayvary12-Jan-07 21:49
professionalHadi Dayvary12-Jan-07 21:49 
GeneralRe: OnClose Call Multiple Times Pin
#realJSOP12-Jan-07 23:39
mve#realJSOP12-Jan-07 23:39 
AnswerRe: OnClose Call Multiple Times Pin
Don Box12-Jan-07 22:09
Don Box12-Jan-07 22:09 
AnswerRe: OnClose Call Multiple Times Pin
#realJSOP12-Jan-07 23:53
mve#realJSOP12-Jan-07 23:53 
Are you putting the OnClose handler in each view or in CMainFrame?

If it's just in CMainFrame, it will only be called once. If it's in your view class, it will be called for every instance of your view object.

If you're cleaning up poointers that are global to your app or that are instantiate in your app or mainframe class, you should handle the OnClose only in CMainFrame. If you need to cleanup pointers that are local to your view object, you need to handle OnClose in the view as well.




"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: OnClose Call Multiple Times Pin
User 1278217-Jan-07 10:31
User 1278217-Jan-07 10:31 
AnswerRe: OnClose Call Multiple Times Pin
Gary R. Wheeler13-Jan-07 2:52
Gary R. Wheeler13-Jan-07 2:52 
GeneralRe: OnClose Call Multiple Times Pin
#realJSOP13-Jan-07 3:31
mve#realJSOP13-Jan-07 3:31 
GeneralRe: OnClose Call Multiple Times Pin
Gary R. Wheeler13-Jan-07 4:02
Gary R. Wheeler13-Jan-07 4:02 
QuestionHow to change the Dialog's caption Pin
Mushtaque Nizamani12-Jan-07 19:59
Mushtaque Nizamani12-Jan-07 19:59 
AnswerRe: How to change the Dialog's caption Pin
Don Box12-Jan-07 20:02
Don Box12-Jan-07 20:02 
AnswerRe: How to change the Dialog's caption Pin
jk chan13-Jan-07 0:55
jk chan13-Jan-07 0:55 
AnswerRe: How to change the Dialog's caption Pin
Hamid_RT13-Jan-07 2:40
Hamid_RT13-Jan-07 2:40 
AnswerRe: How to change the Dialog's caption Pin
Eytukan13-Jan-07 22:03
Eytukan13-Jan-07 22:03 
QuestionLoading a class from a lib(dll) file Pin
Hadi Dayvary12-Jan-07 19:39
professionalHadi Dayvary12-Jan-07 19:39 
AnswerRe: Loading a class from a lib(dll) file Pin
Don Box12-Jan-07 19:55
Don Box12-Jan-07 19:55 
GeneralRe: Loading a class from a lib(dll) file Pin
Hadi Dayvary12-Jan-07 21:46
professionalHadi Dayvary12-Jan-07 21:46 
GeneralRe: Loading a class from a lib(dll) file Pin
ThatsAlok14-Jan-07 19:58
ThatsAlok14-Jan-07 19:58 
QuestionAny function to find the last modified time of a file? Pin
ShaluMalu12-Jan-07 18:53
ShaluMalu12-Jan-07 18:53 
AnswerRe: Any function to find the last modified time of a file? Pin
Hamid_RT12-Jan-07 18:58
Hamid_RT12-Jan-07 18:58 
AnswerRe: Any function to find the last modified time of a file? Pin
Don Box12-Jan-07 19:10
Don Box12-Jan-07 19:10 
AnswerRe: Any function to find the last modified time of a file? Pin
Mark Salsbery13-Jan-07 6:50
Mark Salsbery13-Jan-07 6:50 

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.