Click here to Skip to main content
12,070,351 members (59,186 online)

C / C++ / MFC

 
QuestionHow to calculate thumb's possion in CScrollBar ????? Pin
Bee cute24-Jan-13 0:26
memberBee cute24-Jan-13 0:26 
Questionhow to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 0:05
groupVCProgrammer24-Jan-13 0:05 
AnswerRe: how to designe my text of dialog box? Pin
Richard MacCutchan24-Jan-13 0:47
mvpRichard MacCutchan24-Jan-13 0:47 
GeneralRe: how to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 1:08
groupVCProgrammer24-Jan-13 1:08 
GeneralRe: how to designe my text of dialog box? Pin
Sivaraman Dhamodharan24-Jan-13 2:22
memberSivaraman Dhamodharan24-Jan-13 2:22 
GeneralRe: how to designe my text of dialog box? Pin
Richard MacCutchan24-Jan-13 2:39
mvpRichard MacCutchan24-Jan-13 2:39 
GeneralRe: how to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 20:56
groupVCProgrammer24-Jan-13 20:56 
QuestionLinking Error Pin
john563223-Jan-13 23:26
memberjohn563223-Jan-13 23:26 
AnswerRe: Linking Error Pin
Richard MacCutchan23-Jan-13 23:58
mvpRichard MacCutchan23-Jan-13 23:58 
GeneralRe: Linking Error Pin
john563224-Jan-13 0:18
memberjohn563224-Jan-13 0:18 
GeneralRe: Linking Error Pin
deardiary24-Jan-13 0:28
memberdeardiary24-Jan-13 0:28 
GeneralRe: Linking Error Pin
Richard MacCutchan24-Jan-13 0:45
mvpRichard MacCutchan24-Jan-13 0:45 
QuestionPlease help me to use the OpenCSG Library in MFC Pin
ansheng116198623-Jan-13 20:34
memberansheng116198623-Jan-13 20:34 
QuestionHow to Handle Logoff event for console based application Pin
vermaashish_mca23-Jan-13 19:47
membervermaashish_mca23-Jan-13 19: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 23:56
mvpRichard MacCutchan23-Jan-13 23:56 
QuestionVC++6.0 Interproc Communication Pin
Ylno22-Jan-13 22:59
memberYlno22-Jan-13 22:59 
AnswerRe: VC++6.0 Interproc Communication Pin
«_Superman_»22-Jan-13 23:34
member«_Superman_»22-Jan-13 23:34 
GeneralRe: VC++6.0 Interproc Communication Pin
Ylno23-Jan-13 0:38
memberYlno23-Jan-13 0:38 
AnswerRe: VC++6.0 Interproc Communication Pin
David Knechtges23-Jan-13 4:05
memberDavid Knechtges23-Jan-13 4:05 
QuestionHow to retrieve the correct range message to update CStatusBar Pin
Vaclav_Sal22-Jan-13 8:51
memberVaclav_Sal22-Jan-13 8:51 
AnswerRe: How to retrieve the correct range message to update CStatusBar Pin
«_Superman_»22-Jan-13 19:37
member«_Superman_»22-Jan-13 19:37 
GeneralRe: How to retrieve the correct range message to update CStatusBar Pin
Vaclav_Sal23-Jan-13 7:01
memberVaclav_Sal23-Jan-13 7:01 
AnswerRe: How to retrieve the correct range message to update CStatusBar Pin
Iain Clarke, Warrior Programmer23-Jan-13 21:55
memberIain Clarke, Warrior Programmer23-Jan-13 21:55 
GeneralRe: How to retrieve the correct range message to update CStatusBar Pin
Vaclav_Sal24-Jan-13 5:39
memberVaclav_Sal24-Jan-13 5:39 
GeneralRe: How to retrieve the correct range message to update CStatusBar Pin
Iain Clarke, Warrior Programmer25-Jan-13 0:08
memberIain Clarke, Warrior Programmer25-Jan-13 0:08 
QuestionHow to process the task bar mouse click event? Pin
yu-jian22-Jan-13 4:50
groupyu-jian22-Jan-13 4:50 
AnswerRe: How to process the task bar mouse click event? Pin
«_Superman_»22-Jan-13 19:44
member«_Superman_»22-Jan-13 19:44 
GeneralRe: How to process the task bar mouse click event? Pin
yu-jian23-Jan-13 3:11
groupyu-jian23-Jan-13 3:11 
Questionhow can draw a panel ? Pin
VCProgrammer22-Jan-13 1:33
groupVCProgrammer22-Jan-13 1:33 
AnswerRe: how can draw a panel ? Pin
Richard MacCutchan22-Jan-13 4:07
mvpRichard MacCutchan22-Jan-13 4:07 
GeneralRe: how can draw a panel ? Pin
VCProgrammer22-Jan-13 18:35
groupVCProgrammer22-Jan-13 18:35 
GeneralRe: how can draw a panel ? Pin
Richard MacCutchan22-Jan-13 22:52
mvpRichard MacCutchan22-Jan-13 22:52 
GeneralRe: how can draw a panel ? Pin
VCProgrammer23-Jan-13 0:32
groupVCProgrammer23-Jan-13 0:32 
GeneralRe: how can draw a panel ? Pin
Richard MacCutchan23-Jan-13 2:00
mvpRichard MacCutchan23-Jan-13 2:00 
Questionc++ implementation of a linked list. Pin
neo2922-Jan-13 1:31
memberneo2922-Jan-13 1:31 
AnswerRe: c++ implementation of a linked list. Pin
Maximilien22-Jan-13 2:35
memberMaximilien22-Jan-13 2:35 
AnswerRe: c++ implementation of a linked list. Pin
Sivaraman Dhamodharan22-Jan-13 3:42
memberSivaraman Dhamodharan22-Jan-13 3:42 
QuestionHaving problem with catching WM_LBUTTONUP message in CScrollBar Pin
Bee cute22-Jan-13 0:52
memberBee cute22-Jan-13 0:52 
AnswerRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Richard MacCutchan22-Jan-13 0:57
mvpRichard MacCutchan22-Jan-13 0:57 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Bee cute22-Jan-13 15:36
memberBee cute22-Jan-13 15:36 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Flaviu222-Jan-13 21:55
memberFlaviu222-Jan-13 21:55 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Bee cute23-Jan-13 16:57
memberBee cute23-Jan-13 16:57 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Flaviu223-Jan-13 21:32
memberFlaviu223-Jan-13 21:32 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Bee cute24-Jan-13 0:13
memberBee cute24-Jan-13 0:13 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Richard MacCutchan22-Jan-13 22:50
mvpRichard MacCutchan22-Jan-13 22:50 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Bee cute23-Jan-13 17:00
memberBee cute23-Jan-13 17:00 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Richard MacCutchan23-Jan-13 23:49
mvpRichard MacCutchan23-Jan-13 23:49 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Bee cute24-Jan-13 0:16
memberBee cute24-Jan-13 0:16 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Richard MacCutchan24-Jan-13 0:43
mvpRichard MacCutchan24-Jan-13 0:43 
GeneralRe: Having problem with catching WM_LBUTTONUP message in CScrollBar Pin
Flaviu224-Jan-13 22:01
memberFlaviu224-Jan-13 22:01 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 10 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid