Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: how to designe my text of dialog box? PingroupVCProgrammer24-Jan-13 19:56 
QuestionLinking Error Pinmemberjohn563223-Jan-13 22:26 
AnswerRe: Linking Error PinmvpRichard MacCutchan23-Jan-13 22:58 
GeneralRe: Linking Error Pinmemberjohn563223-Jan-13 23:18 
GeneralRe: Linking Error Pinmemberdeardiary23-Jan-13 23:28 
GeneralRe: Linking Error PinmvpRichard MacCutchan23-Jan-13 23:45 
QuestionPlease help me to use the OpenCSG Library in MFC Pinmemberansheng116198623-Jan-13 19:34 
QuestionHow to Handle Logoff event for console based application Pinmembervermaashish_mca23-Jan-13 18:47 
Hi
 
I have created a console application (.exe), and we have used SetConsoleCtrlHandler for signal handling i.e. "CTRL + C" and Log Off and Shutdown Events.
We are properly able to handle the "CTRL+C" event but Logoff and Shut down events cannot be handled properly.
 
Following content is mentioned at MSDN:
========================================================
The system generates CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, and CTRL_SHUTDOWN_EVENT signals when the user closes the console, logs off, or shuts down the system so that the process has an opportunity to clean up before termination. Console functions, or any C run-time functions that call console functions, may not work reliably during processing of any of the three signals mentioned previously. The reason is that some or all of the internal console cleanup routines may have been called before executing the process signal handler.
========================================================
Please suggest how we can properly handle Logoff and shutdown event by our console application.
Or please suggest any other technique (if available) for handling the logoff and shutdown event by the console based application.
 
Thank You
Ashish Kumar verma
Software Engineer(VC++)

AnswerRe: How to Handle Logoff event for console based application PinmvpRichard MacCutchan23-Jan-13 22:56 
QuestionVC++6.0 Interproc Communication PinmemberYlno22-Jan-13 21:59 
AnswerRe: VC++6.0 Interproc Communication Pinmember«_Superman_»22-Jan-13 22:34 
GeneralRe: VC++6.0 Interproc Communication PinmemberYlno22-Jan-13 23:38 
AnswerRe: VC++6.0 Interproc Communication PinmemberDavid Knechtges23-Jan-13 3:05 
QuestionHow to retrieve the correct range message to update CStatusBar PinmemberVaclav_Sal22-Jan-13 7:51 
AnswerRe: How to retrieve the correct range message to update CStatusBar Pinmember«_Superman_»22-Jan-13 18:37 
GeneralRe: How to retrieve the correct range message to update CStatusBar PinmemberVaclav_Sal23-Jan-13 6:01 
AnswerRe: How to retrieve the correct range message to update CStatusBar PinmemberIain Clarke, Warrior Programmer23-Jan-13 20:55 
GeneralRe: How to retrieve the correct range message to update CStatusBar [modified] PinmemberVaclav_Sal24-Jan-13 4:39 
GeneralRe: How to retrieve the correct range message to update CStatusBar PinmemberIain Clarke, Warrior Programmer24-Jan-13 23:08 
QuestionHow to process the task bar mouse click event? Pingroupyu-jian22-Jan-13 3:50 
AnswerRe: How to process the task bar mouse click event? Pinmember«_Superman_»22-Jan-13 18:44 
GeneralRe: How to process the task bar mouse click event? Pingroupyu-jian23-Jan-13 2:11 
Questionhow can draw a panel ? PingroupVCProgrammer22-Jan-13 0:33 
AnswerRe: how can draw a panel ? PinmvpRichard MacCutchan22-Jan-13 3:07 
GeneralRe: how can draw a panel ? PingroupVCProgrammer22-Jan-13 17:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 23 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid