G
Guest
My application has no 'normal' monitor to speak of. It does write output
through a Titling board to a NTSC display. Writing to the Titling board
involves sending commands to position strings, etc.
I want my operator to be able to hibernate (I'll give him a menu choice
which will send an 'xpepm -hibernate' command. I then want the operator to
be able to power up and be at the same point in the application where he left
off. Right now, when I hibernate with the application running and then power
up, the program resumes running, but because if Titling board was also reset,
the display doesn't have any data on it, and thus, the operator is not really
back to where he left off.
I have read other posts that talk about trapping a power event message.
However, my application is not Windows/MFC/event based - it is a basic
console app. Another post talked about comparing the current time to the
last time stored, but that is not as easy to do as one might think, since I
have EWF on, so the 'stored' time would have to go on a USB (removeable)
drive.
Is there some way to either a) know that I just resumed from a hibernate
state, or b) have it run an application upon resuming from a hibernated
state. I am familiar with building components if it can be done through such.
through a Titling board to a NTSC display. Writing to the Titling board
involves sending commands to position strings, etc.
I want my operator to be able to hibernate (I'll give him a menu choice
which will send an 'xpepm -hibernate' command. I then want the operator to
be able to power up and be at the same point in the application where he left
off. Right now, when I hibernate with the application running and then power
up, the program resumes running, but because if Titling board was also reset,
the display doesn't have any data on it, and thus, the operator is not really
back to where he left off.
I have read other posts that talk about trapping a power event message.
However, my application is not Windows/MFC/event based - it is a basic
console app. Another post talked about comparing the current time to the
last time stored, but that is not as easy to do as one might think, since I
have EWF on, so the 'stored' time would have to go on a USB (removeable)
drive.
Is there some way to either a) know that I just resumed from a hibernate
state, or b) have it run an application upon resuming from a hibernated
state. I am familiar with building components if it can be done through such.