Click here to Skip to main content
15,892,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debugging Dll Pin
Richard MacCutchan30-Jan-13 23:10
mveRichard MacCutchan30-Jan-13 23:10 
GeneralRe: Debugging Dll Pin
sarfaraznawaz31-Jan-13 2:01
sarfaraznawaz31-Jan-13 2:01 
GeneralRe: Debugging Dll Pin
Richard MacCutchan31-Jan-13 2:04
mveRichard MacCutchan31-Jan-13 2:04 
GeneralRe: Debugging Dll Pin
sarfaraznawaz31-Jan-13 2:21
sarfaraznawaz31-Jan-13 2:21 
GeneralRe: Debugging Dll Pin
sarfaraznawaz5-Feb-13 18:21
sarfaraznawaz5-Feb-13 18:21 
Questionconvert parameter from 'MSTR' to 'char*' Pin
ksjbharathi24-Jan-13 0:27
ksjbharathi24-Jan-13 0:27 
AnswerRe: convert parameter from 'MSTR' to 'char*' Pin
Sivaraman Dhamodharan24-Jan-13 1:23
Sivaraman Dhamodharan24-Jan-13 1:23 
AnswerRe: convert parameter from 'MSTR' to 'char*' Pin
Richard MacCutchan24-Jan-13 1:48
mveRichard MacCutchan24-Jan-13 1:48 
QuestionRe: convert parameter from 'MSTR' to 'char*' Pin
CPallini25-Jan-13 10:57
mveCPallini25-Jan-13 10:57 
QuestionHow to calculate thumb's possion in CScrollBar ????? Pin
Bee cute23-Jan-13 23:26
Bee cute23-Jan-13 23:26 
Questionhow to designe my text of dialog box? Pin
VCProgrammer23-Jan-13 23:05
VCProgrammer23-Jan-13 23:05 
AnswerRe: how to designe my text of dialog box? Pin
Richard MacCutchan23-Jan-13 23:47
mveRichard MacCutchan23-Jan-13 23:47 
GeneralRe: how to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 0:08
VCProgrammer24-Jan-13 0:08 
GeneralRe: how to designe my text of dialog box? Pin
Sivaraman Dhamodharan24-Jan-13 1:22
Sivaraman Dhamodharan24-Jan-13 1:22 
GeneralRe: how to designe my text of dialog box? Pin
Richard MacCutchan24-Jan-13 1:39
mveRichard MacCutchan24-Jan-13 1:39 
GeneralRe: how to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 19:56
VCProgrammer24-Jan-13 19:56 
QuestionLinking Error Pin
john563223-Jan-13 22:26
john563223-Jan-13 22:26 
AnswerRe: Linking Error Pin
Richard MacCutchan23-Jan-13 22:58
mveRichard MacCutchan23-Jan-13 22:58 
GeneralRe: Linking Error Pin
john563223-Jan-13 23:18
john563223-Jan-13 23:18 
GeneralRe: Linking Error Pin
deardiary23-Jan-13 23:28
deardiary23-Jan-13 23:28 
GeneralRe: Linking Error Pin
Richard MacCutchan23-Jan-13 23:45
mveRichard MacCutchan23-Jan-13 23:45 
QuestionPlease help me to use the OpenCSG Library in MFC Pin
ansheng116198623-Jan-13 19:34
ansheng116198623-Jan-13 19:34 
QuestionHow to Handle Logoff event for console based application Pin
vermaashish_mca23-Jan-13 18:47
vermaashish_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 Pin
Richard MacCutchan23-Jan-13 22:56
mveRichard MacCutchan23-Jan-13 22:56 
QuestionVC++6.0 Interproc Communication Pin
Ylno22-Jan-13 21:59
Ylno22-Jan-13 21:59 

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.