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

C / C++ / MFC

 
QuestionOnClose function problem Pin
Pryabu10-Aug-09 23:16
Pryabu10-Aug-09 23:16 
AnswerRe: OnClose function problem Pin
CPallini10-Aug-09 23:21
mveCPallini10-Aug-09 23:21 
GeneralRe: OnClose function problem Pin
Pryabu10-Aug-09 23:26
Pryabu10-Aug-09 23:26 
GeneralRe: OnClose function problem Pin
«_Superman_»10-Aug-09 23:38
professional«_Superman_»10-Aug-09 23:38 
GeneralRe: OnClose function problem Pin
Pryabu10-Aug-09 23:43
Pryabu10-Aug-09 23:43 
GeneralRe: OnClose function problem Pin
Pryabu11-Aug-09 2:01
Pryabu11-Aug-09 2:01 
GeneralRe: OnClose function problem Pin
David Crow11-Aug-09 3:12
David Crow11-Aug-09 3:12 
GeneralRe: OnClose function problem Pin
Nishad S11-Aug-09 3:16
Nishad S11-Aug-09 3:16 
One simple solution (I think) would be

1. Write the status as STARTED to a status file when the application starts
2. Update it to CLOSED when application exits

You can check this status file to ensure whether the application closed normally or not.

One thing is that, when an application crashes no OnClose() like functions are called. Actually the OS is terminating the process.

- ns ami -

QuestionTiltleBar Pin
kumar sanghvi10-Aug-09 21:29
kumar sanghvi10-Aug-09 21:29 
AnswerRe: TiltleBar Pin
«_Superman_»10-Aug-09 22:25
professional«_Superman_»10-Aug-09 22:25 
GeneralRe: TiltleBar Pin
kumar sanghvi10-Aug-09 22:38
kumar sanghvi10-Aug-09 22:38 
GeneralRe: TiltleBar Pin
«_Superman_»10-Aug-09 22:49
professional«_Superman_»10-Aug-09 22:49 
GeneralRe: TiltleBar Pin
kumar sanghvi10-Aug-09 22:58
kumar sanghvi10-Aug-09 22:58 
QuestionRe: TiltleBar Pin
David Crow11-Aug-09 3:14
David Crow11-Aug-09 3:14 
AnswerRe: TiltleBar Pin
kumar sanghvi11-Aug-09 4:35
kumar sanghvi11-Aug-09 4:35 
AnswerRe: TiltleBar Pin
David Crow11-Aug-09 4:38
David Crow11-Aug-09 4:38 
Questionwant ur help Pin
Maniha10-Aug-09 21:20
Maniha10-Aug-09 21:20 
AnswerRe: want ur help Pin
CPallini10-Aug-09 21:31
mveCPallini10-Aug-09 21:31 
AnswerRe: want ur help Pin
Rajesh R Subramanian11-Aug-09 1:48
professionalRajesh R Subramanian11-Aug-09 1:48 
QuestionHelp about MSCOMM in VC++.NET 2003 Pin
shiv@nand10-Aug-09 21:03
shiv@nand10-Aug-09 21:03 
AnswerRe: Help about MSCOMM in VC++.NET 2003 Pin
CPallini10-Aug-09 21:29
mveCPallini10-Aug-09 21:29 
QuestionHow can use Find Operation in CListCtrl? Pin
Le@rner10-Aug-09 20:15
Le@rner10-Aug-09 20:15 
AnswerRe: How can use Find Operation in CListCtrl? Pin
Code-o-mat10-Aug-09 20:39
Code-o-mat10-Aug-09 20:39 
GeneralRe: How can use Find Operation in CListCtrl? Pin
Le@rner11-Aug-09 1:08
Le@rner11-Aug-09 1:08 
GeneralRe: How can use Find Operation in CListCtrl? Pin
Code-o-mat11-Aug-09 3:03
Code-o-mat11-Aug-09 3:03 

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.