Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: loading and displaying images Pin
ThatsAlok15-Jan-06 21:06
ThatsAlok15-Jan-06 21:06 
QuestionSubclassing CEdit, OnChar Pin
Lilith.C13-Jan-06 17:36
Lilith.C13-Jan-06 17:36 
AnswerRe: Subclassing CEdit, OnChar Pin
includeh1013-Jan-06 17:56
includeh1013-Jan-06 17:56 
GeneralRe: Subclassing CEdit, OnChar Pin
FarPointer14-Jan-06 0:21
FarPointer14-Jan-06 0:21 
GeneralRe: Subclassing CEdit, OnChar Pin
Lilith.C14-Jan-06 3:54
Lilith.C14-Jan-06 3:54 
QuestionPrevent endtask the application Pin
leenmie13-Jan-06 16:09
leenmie13-Jan-06 16:09 
AnswerRe: Prevent endtask the application Pin
Stephen Hewitt13-Jan-06 21:45
Stephen Hewitt13-Jan-06 21:45 
GeneralRe: Prevent endtask the application Pin
John Simon14-Jan-06 13:47
John Simon14-Jan-06 13:47 
a technique i have used is to run two processes -- let's say your app is tracker.exe, i would use tracker.exe and tracker_helper.exe. basically in both apps, use the WaitForSingleObject function, to wait for the other's process handle. if it is killed, just respawn the other process again.

of course this will be conspiciouos, if you want to stop people from seeing that you are doing this, maybe use srvtasks.exe or something kernel-sounding for the second one and put it in a system folder. (possibly ????)

still, if the user knew what they were doing, they could write an app to kill both processes simultaneously. if you don't want that, you can probably write a security descriptor for you main process and apply it somehow (sorry, can't help you there). if you have norton antivirus you can try to kill navapscv.exe and see what i mean.

hope that helps
QuestionStarting another process Pin
Polymorpher13-Jan-06 14:40
Polymorpher13-Jan-06 14:40 
AnswerRe: Starting another process Pin
Stephen Hewitt13-Jan-06 15:10
Stephen Hewitt13-Jan-06 15:10 
QuestionHow to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
Larry Mills Sr13-Jan-06 14:32
Larry Mills Sr13-Jan-06 14:32 
AnswerRe: How to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
KellyR13-Jan-06 14:45
KellyR13-Jan-06 14:45 
AnswerRe: How to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
FarPointer14-Jan-06 0:04
FarPointer14-Jan-06 0:04 
QuestionHow to send a shortcut from a program to the desktop Pin
Larry Mills Sr13-Jan-06 14:26
Larry Mills Sr13-Jan-06 14:26 
AnswerRe: How to send a shortcut from a program to the desktop Pin
KellyR13-Jan-06 14:51
KellyR13-Jan-06 14:51 
QuestionAccessing MFC classes in VB Pin
mohanrajh13-Jan-06 14:14
mohanrajh13-Jan-06 14:14 
AnswerRe: Accessing MFC classes in VB Pin
includeh1013-Jan-06 18:02
includeh1013-Jan-06 18:02 
GeneralRe: Accessing MFC classes in VB Pin
mohanrajh14-Jan-06 0:13
mohanrajh14-Jan-06 0:13 
QuestionVS2005 Dialog Editor -> Add Variable - Control Id field is blank Pin
Yak7713-Jan-06 12:47
Yak7713-Jan-06 12:47 
QuestionQuestion when writing an Assert function Pin
Nacho Chip13-Jan-06 12:30
Nacho Chip13-Jan-06 12:30 
AnswerRe: Question when writing an Assert function Pin
Stephen Hewitt13-Jan-06 18:58
Stephen Hewitt13-Jan-06 18:58 
AnswerRe: Question when writing an Assert function Pin
Gary R. Wheeler15-Jan-06 5:24
Gary R. Wheeler15-Jan-06 5:24 
GeneralRe: Question when writing an Assert function Pin
Harold Bamford16-Jan-06 11:52
Harold Bamford16-Jan-06 11:52 
GeneralRe: Question when writing an Assert function Pin
Gary R. Wheeler17-Jan-06 16:13
Gary R. Wheeler17-Jan-06 16:13 
GeneralRe: Question when writing an Assert function Pin
Harold Bamford19-Jan-06 4:40
Harold Bamford19-Jan-06 4:40 

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.