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

C / C++ / MFC

 
GeneralRe: Accessing a value from a different property page? Pin
Blake Miller4-Jan-05 8:37
Blake Miller4-Jan-05 8:37 
GeneralSDI Project Tutorials Pin
jerry1211a4-Jan-05 4:09
jerry1211a4-Jan-05 4:09 
GeneralRe: SDI Project Tutorials Pin
David Crow4-Jan-05 4:25
David Crow4-Jan-05 4:25 
GeneralDatabase Programming Pin
Leyu4-Jan-05 3:38
Leyu4-Jan-05 3:38 
GeneralRe: Database Programming Pin
David Crow4-Jan-05 4:11
David Crow4-Jan-05 4:11 
QuestionOpposite function for ExcludeClipRect() ? Pin
rrrado4-Jan-05 3:35
rrrado4-Jan-05 3:35 
AnswerRe: Opposite function for ExcludeClipRect() ? Pin
rrrado4-Jan-05 4:59
rrrado4-Jan-05 4:59 
GeneralTrapping Crashes/Power-offs Pin
simeske4-Jan-05 3:26
susssimeske4-Jan-05 3:26 
I have been asked to see if I can differentiate between when a system crashes and when it is inadvertently powered-off.

The reason for this is that I have a shell created which is used in place of the normal Windows Desktop. This shell application really acts as a locked down version, so as to only allow access to certain functionality. Whilst the Shell is running an audit log is kept of what the user is running. However during the running of the shell application the system may suddenly crash or get powered-off. So I would like to know if its possible when I go back into the system to check some attribute or value to determine if the system was powered off or it crashed.

If there is a way, is it easy or could it get complicated. The Shell is only a small application and I dont want to waste time on it if the returns are not going to be great. I presently write out to a temp file everytime the user goes into a specific application. The name of the file gets changed if the user comes out of the shell correctly. Then if the system crashes or gets powered off I just check for the temp file existing (meaning the shell did not close down properly). I then write something into the file stating that the data could be invalid. This obviously does not state if the reason was due to crash or loss of power.

Thanks,

Simes
GeneralRe: Trapping Crashes/Power-offs Pin
rrrado4-Jan-05 5:01
rrrado4-Jan-05 5:01 
GeneralRe: Trapping Crashes/Power-offs Pin
Blake Miller4-Jan-05 8:41
Blake Miller4-Jan-05 8:41 
GeneralPascal Calling conention Pin
Ranjish4-Jan-05 2:22
Ranjish4-Jan-05 2:22 
GeneralRe: Pascal Calling conention Pin
David Crow4-Jan-05 2:33
David Crow4-Jan-05 2:33 
GeneralRe: Pascal Calling conention Pin
Anonymous4-Jan-05 2:46
Anonymous4-Jan-05 2:46 
GeneralRe: Pascal Calling conention Pin
David Crow4-Jan-05 3:55
David Crow4-Jan-05 3:55 
GeneralRe: Pascal Calling conention Pin
Rick York4-Jan-05 7:27
mveRick York4-Jan-05 7:27 
GeneralRe: Pascal Calling conention Pin
David Crow5-Jan-05 2:43
David Crow5-Jan-05 2:43 
GeneralRe: Pascal Calling conention Pin
Anonymous5-Jan-05 2:52
Anonymous5-Jan-05 2:52 
GeneralRe: Pascal Calling conention Pin
Ranjish5-Jan-05 22:22
Ranjish5-Jan-05 22:22 
GeneralVC++ error in assembler Pin
anup_zade4-Jan-05 2:22
anup_zade4-Jan-05 2:22 
GeneralRe: VC++ error in assembler Pin
David Crow4-Jan-05 2:36
David Crow4-Jan-05 2:36 
Generali++ as referance Pin
Ranjish4-Jan-05 2:20
Ranjish4-Jan-05 2:20 
GeneralRe: i++ as referance Pin
BlackDice4-Jan-05 2:32
BlackDice4-Jan-05 2:32 
GeneralRe: i++ as referance Pin
Anonymous4-Jan-05 2:40
Anonymous4-Jan-05 2:40 
GeneralRe: i++ as referance Pin
Ryan Binns4-Jan-05 2:52
Ryan Binns4-Jan-05 2:52 
GeneralRe: i++ as referance Pin
Ranjish5-Jan-05 2:27
Ranjish5-Jan-05 2:27 

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.