Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with cout... Pin
Talent Chan22-Jul-06 1:53
Talent Chan22-Jul-06 1:53 
AnswerRe: Problem with cout... Pin
Michael Dunn22-Jul-06 9:40
sitebuilderMichael Dunn22-Jul-06 9:40 
QuestionProblem about the "Optimization: Maximize Speed(O2)" Pin
chenxiujie21-Jul-06 18:10
chenxiujie21-Jul-06 18:10 
QuestionHow can I build a library for Mac (or Linux) on Windows Pin
plowstar21-Jul-06 16:49
plowstar21-Jul-06 16:49 
QuestionHow to forbid the user to terminate my program. Pin
Member 200639821-Jul-06 16:30
Member 200639821-Jul-06 16:30 
QuestionRe: How to forbid the user to terminate my program. Pin
Steve Echols21-Jul-06 17:03
Steve Echols21-Jul-06 17:03 
AnswerRe: How to forbid the user to terminate my program. Pin
Joe Woodbury21-Jul-06 17:37
professionalJoe Woodbury21-Jul-06 17:37 
GeneralRe: How to forbid the user to terminate my program. Pin
flippydeflippydebop21-Jul-06 19:25
flippydeflippydebop21-Jul-06 19:25 
If its an important application that needs to be running 365 days of the year, it should be firstly be running on a dedicated server. The less user interaction the more chance it wont be closed by accident. You can then start by overridding the usual suspects: OnClose, OnOK, OnCancel. Although as previous replies have said, a user could still terminate the application via task manager. - Maybe writing the application as a desktop application is the wrong avenue to take in this instance and writing the program as a windows service would be more fitting. However, even though this would give you some benefits ( e.g from people logging onto the machine and mistakingly terminating the program ) you can still not guarantee that your program could not be stopped.

If you really want to make sure that this application is not closed, you could write a heartbeat/pulse utility which periodically checks to make sure that your app is still running, and if its not re-start it! - then ofcourse some of the emphasis then shifts to the heartbeat/utility app. If this gets closed, then your back to step 1. - You could make the same heartbeat/pulse app distributed, in that it could be present on multiple servers, with all of them checking in with the server your 'important' app is running on.

Just a few ramblings.



GeneralRe: How to forbid the user to terminate my program. Pin
wanglei198021-Jul-06 19:35
wanglei198021-Jul-06 19:35 
AnswerRe: How to forbid the user to terminate my program. Pin
Stephen Hewitt21-Jul-06 19:38
Stephen Hewitt21-Jul-06 19:38 
GeneralRe: How to forbid the user to terminate my program. Pin
Hamid_RT21-Jul-06 23:37
Hamid_RT21-Jul-06 23:37 
AnswerRe: How to forbid the user to terminate my program. Pin
Maxwell Chen22-Jul-06 7:41
Maxwell Chen22-Jul-06 7:41 
QuestionTextbox selection color Pin
Fernando A. Gomez F.21-Jul-06 14:08
Fernando A. Gomez F.21-Jul-06 14:08 
AnswerRe: Textbox selection color Pin
Richard Andrew x6421-Jul-06 18:44
professionalRichard Andrew x6421-Jul-06 18:44 
AnswerRe: Textbox selection color Pin
James Brown21-Jul-06 21:45
James Brown21-Jul-06 21:45 
AnswerRe: Textbox selection color Pin
Hamid_RT21-Jul-06 23:37
Hamid_RT21-Jul-06 23:37 
QuestionC# to C++ inter operating Pin
SameepSheth12365421-Jul-06 10:48
SameepSheth12365421-Jul-06 10:48 
AnswerRe: C# to C++ inter operating Pin
DavidR_r21-Jul-06 20:30
DavidR_r21-Jul-06 20:30 
QuestionGetPrivateProfileSectionName won't work in VC++.NET 2002 [modified] Pin
Roj21-Jul-06 10:29
Roj21-Jul-06 10:29 
AnswerRe: GetPrivateProfileSectionName won't work in VC++.NET 2002 Pin
Richard Andrew x6421-Jul-06 18:36
professionalRichard Andrew x6421-Jul-06 18:36 
GeneralRe: GetPrivateProfileSectionName won't work in VC++.NET 2002 [modified] Pin
Roj21-Jul-06 19:01
Roj21-Jul-06 19:01 
GeneralRe: GetPrivateProfileSectionName won't work in VC++.NET 2002 [modified] Pin
Roj21-Jul-06 19:29
Roj21-Jul-06 19:29 
QuestionWriting a Windows Service: Need it to start in Safe Mode Pin
chlimouj21-Jul-06 7:26
chlimouj21-Jul-06 7:26 
AnswerRe: Writing a Windows Service: Need it to start in Safe Mode Pin
Zac Howland21-Jul-06 9:17
Zac Howland21-Jul-06 9:17 
QuestionTraversing treeview nodes in VC++ .NET Pin
Scorpion_guy21-Jul-06 7:13
Scorpion_guy21-Jul-06 7:13 

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.