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

C / C++ / MFC

 
AnswerRe: hide a process! Pin
Naveen21-Jul-06 23:17
Naveen21-Jul-06 23:17 
AnswerRe: hide a process! Pin
Stephen Hewitt22-Jul-06 0:38
Stephen Hewitt22-Jul-06 0:38 
AnswerRe: hide a process! Pin
Eytukan22-Jul-06 4:43
Eytukan22-Jul-06 4:43 
GeneralRe: hide a process! Pin
ThatsAlok23-Jul-06 21:15
ThatsAlok23-Jul-06 21:15 
AnswerRe: hide a process! Pin
ThatsAlok23-Jul-06 21:15
ThatsAlok23-Jul-06 21:15 
QuestionNeed Help On Netmeeting 3 SDK. Pin
Kiran Pinjala21-Jul-06 22:07
Kiran Pinjala21-Jul-06 22:07 
AnswerRe: Need Help On Netmeeting 3 SDK. Pin
ThatsAlok23-Jul-06 21:14
ThatsAlok23-Jul-06 21:14 
QuestionLoading 3D images.. Pin
Noor Akhter21-Jul-06 21:07
Noor Akhter21-Jul-06 21:07 
AnswerRe: Loading 3D images.. Pin
JWood22-Jul-06 1:02
JWood22-Jul-06 1:02 
QuestionProblem with cout... Pin
Talent Chan21-Jul-06 20:52
Talent Chan21-Jul-06 20:52 
AnswerRe: Problem with cout... [modified] Pin
A_Fa21-Jul-06 21:36
A_Fa21-Jul-06 21:36 
GeneralRe: Problem with cout... Pin
Talent Chan21-Jul-06 22:55
Talent Chan21-Jul-06 22:55 
GeneralRe: Problem with cout... Pin
A_Fa22-Jul-06 0:15
A_Fa22-Jul-06 0:15 
GeneralRe: Problem with cout... Pin
debugger_200822-Jul-06 0:45
debugger_200822-Jul-06 0:45 
AnswerRe: Problem with cout... Pin
Stephen Hewitt22-Jul-06 1:09
Stephen Hewitt22-Jul-06 1:09 
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 

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.