Click here to Skip to main content
16,006,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What means "typo"? Pin
David Crow28-Apr-03 4:21
David Crow28-Apr-03 4:21 
GeneralRe: What means "typo"? Pin
George228-Apr-03 20:23
George228-Apr-03 20:23 
QuestionWhere can I find tutorials about exception specifications? Pin
George227-Apr-03 1:52
George227-Apr-03 1:52 
AnswerRe: Where can I find tutorials about exception specifications? Pin
Emiliano27-Apr-03 4:45
Emiliano27-Apr-03 4:45 
GeneralA question about licences Pin
Anonymous26-Apr-03 22:26
Anonymous26-Apr-03 22:26 
GeneralRe: A question about licences Pin
Hans Dietrich26-Apr-03 23:54
mentorHans Dietrich26-Apr-03 23:54 
QuestionHow get notified before my program is terminated externally by TerminateProcess Pin
Arnold Sonico26-Apr-03 21:03
Arnold Sonico26-Apr-03 21:03 
AnswerRe: How get notified before my program is terminated externally by TerminateProcess Pin
Hans Dietrich26-Apr-03 21:34
mentorHans Dietrich26-Apr-03 21:34 
TerminateProcess will stop your program immediately. You will get no message or signal (a la Unix) that you are about to be terminated.

There are some tricks you can play - e.g., TP will not terminate child processes. So you could have a child process (not a thread) monitoring your service. But what happens if your child process gets TP'd?

I assume you are really talking about TP and not a user selecting Shutdown System?

At best, you can check a flag you create in Registry, and when your program starts again, you can check flag and see if orderly shutdown. If not, try to do some cleanup, or check database consistency, etc.

Best wishes,
Hans


General?? is this the correct MFC approach Pin
Paul Farry26-Apr-03 19:45
professionalPaul Farry26-Apr-03 19:45 
GeneralRe: ?? is this the correct MFC approach Pin
Hans Dietrich26-Apr-03 21:11
mentorHans Dietrich26-Apr-03 21:11 
GeneralRe: ?? is this the correct MFC approach Pin
Paul Farry26-Apr-03 21:42
professionalPaul Farry26-Apr-03 21:42 
Generalerror :- cannot open mfc42u.lib Pin
Vipin Bokariya26-Apr-03 19:31
Vipin Bokariya26-Apr-03 19:31 
GeneralRe: error :- cannot open mfc42u.lib Pin
Hans Dietrich26-Apr-03 20:53
mentorHans Dietrich26-Apr-03 20:53 
GeneralRe: error :- cannot open mfc42u.lib Pin
Vipin Bokariya28-Apr-03 0:36
Vipin Bokariya28-Apr-03 0:36 
Questionconversion of win32 api into MFC is it possible......? Pin
Vipin Bokariya26-Apr-03 17:54
Vipin Bokariya26-Apr-03 17:54 
AnswerRe: conversion of win32 api into MFC is it possible......? Pin
John R. Shaw28-Apr-03 16:53
John R. Shaw28-Apr-03 16:53 
GeneralCBitmap 's LoadBitmap Pin
Member 25731526-Apr-03 17:17
Member 25731526-Apr-03 17:17 
GeneralRe: CBitmap 's LoadBitmap Pin
Nish Nishant26-Apr-03 17:50
sitebuilderNish Nishant26-Apr-03 17:50 
GeneralRe: CBitmap 's LoadBitmap Pin
Heiko200327-Apr-03 4:01
sussHeiko200327-Apr-03 4:01 
GeneralRe: CBitmap 's LoadBitmap Pin
John R. Shaw28-Apr-03 17:14
John R. Shaw28-Apr-03 17:14 
GeneralAbout CEdit vertical center Pin
lvvvww26-Apr-03 16:58
lvvvww26-Apr-03 16:58 
GeneralRe: About CEdit vertical center Pin
Hans Dietrich27-Apr-03 0:22
mentorHans Dietrich27-Apr-03 0:22 
GeneralRe: About CEdit vertical center Pin
Member 81035169-May-14 13:41
Member 81035169-May-14 13:41 
GeneralWSAWaitForMultipleEvents & WaitForMultipleEvents Pin
Jörgen Sigvardsson26-Apr-03 12:19
Jörgen Sigvardsson26-Apr-03 12:19 
GeneralRe: WSAWaitForMultipleEvents & WaitForMultipleEvents Pin
Stefan Pedersen26-Apr-03 13:19
Stefan Pedersen26-Apr-03 13:19 

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.