Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: linker error for extern function Pin
bryce18-Nov-04 13:50
bryce18-Nov-04 13:50 
GeneralRe: linker error for extern function Pin
Ann6618-Nov-04 14:02
sussAnn6618-Nov-04 14:02 
GeneralRe: linker error for extern function Pin
bryce18-Nov-04 14:32
bryce18-Nov-04 14:32 
GeneralRe: linker error for extern function Pin
bmzhao18-Nov-04 16:08
bmzhao18-Nov-04 16:08 
Generaldon´t know, how to say it short :( Pin
LacrimaMosa18-Nov-04 12:31
LacrimaMosa18-Nov-04 12:31 
GeneralRe: don´t know, how to say it short :( Pin
bryce18-Nov-04 13:49
bryce18-Nov-04 13:49 
GeneralRe: don´t know, how to say it short :( Pin
LacrimaMosa19-Nov-04 6:15
LacrimaMosa19-Nov-04 6:15 
QuestionHow to detect a system shutdown? Pin
heman15418-Nov-04 10:49
heman15418-Nov-04 10:49 
Is there a way to query windows to determine if a system shutdown is imminent?

I have a user interface application which provides the option to execute an upgrader application. This upgrader application deletes some system files and then transfers new system files in place. The problem is that due to driver install (upgrade files are stored on a pcmcia card and windows asks to shutdown after the drivers are loaded sometimes), windows will sometimes send a messagebox asking for the unit to be restarted, which is very bad if the user selects ok when systems files have been deleted and not replaced yet. I've already put a handler function for the WM_QUERYENDSESSION message in the upgrader app (which works fine), but I still need to trap the condition in which the WM_QUERYENDSESSION message is sent before the upgrader application starts (in which case, the application missed this message). If I can find out if the shutdown is imminent, I can prevent the file transfer.


Thanks,
Himanshu
AnswerRe: How to detect a system shutdown? Pin
22491718-Nov-04 19:24
22491718-Nov-04 19:24 
GeneralRe: How to detect a system shutdown? Pin
heman15419-Nov-04 3:26
heman15419-Nov-04 3:26 
GeneralRe: How to detect a system shutdown? Pin
David Crow19-Nov-04 4:26
David Crow19-Nov-04 4:26 
GeneralProgrammatically close an executable. Pin
DanYELL18-Nov-04 10:27
DanYELL18-Nov-04 10:27 
GeneralRe: Programmatically close an executable. Pin
Gerald Schwab18-Nov-04 10:53
Gerald Schwab18-Nov-04 10:53 
GeneralNon-blocking Sockets Pin
joelite18-Nov-04 9:35
joelite18-Nov-04 9:35 
GeneralRe: Non-blocking Sockets Pin
David Crow18-Nov-04 10:18
David Crow18-Nov-04 10:18 
GeneralHelp!!! How to set position of a dialog Pin
VikramDelhi18-Nov-04 9:05
VikramDelhi18-Nov-04 9:05 
GeneralRe: Help!!! How to set position of a dialog Pin
David Crow18-Nov-04 10:12
David Crow18-Nov-04 10:12 
GeneralRe: Help!!! How to set position of a dialog Pin
VikramDelhi19-Nov-04 9:49
VikramDelhi19-Nov-04 9:49 
QuestionHow do I Serialize a CEditView as Binary? Pin
Anonymous18-Nov-04 8:17
Anonymous18-Nov-04 8:17 
GeneralTreeview transparent background Pin
LukeV18-Nov-04 6:52
LukeV18-Nov-04 6:52 
GeneralRe: Treeview transparent background Pin
BlackDice18-Nov-04 9:09
BlackDice18-Nov-04 9:09 
GeneralRe: Treeview transparent background Pin
LukeV18-Nov-04 10:50
LukeV18-Nov-04 10:50 
QuestionPrinting in an MFC application with a splitter window? Pin
lasombra18-Nov-04 6:03
lasombra18-Nov-04 6:03 
QuestionHow to exit an application automatically? Pin
nonothing18-Nov-04 4:39
nonothing18-Nov-04 4:39 
AnswerRe: How to exit an application automatically? Pin
BlackDice18-Nov-04 4:44
BlackDice18-Nov-04 4:44 

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.