Click here to Skip to main content
15,927,699 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Christian Graus ... where are you? Pin
Michael Martin3-Jun-01 18:33
professionalMichael Martin3-Jun-01 18:33 
GeneralRe: Christian Graus ... where are you? Pin
3-Jun-01 18:55
suss3-Jun-01 18:55 
GeneralRe: Christian Graus ... where are you? Pin
PJ Arends3-Jun-01 21:26
professionalPJ Arends3-Jun-01 21:26 
GeneralRe: Christian Graus ... where are you? Pin
4-Jun-01 5:01
suss4-Jun-01 5:01 
GeneralRe: Christian Graus ... where are you? Pin
4-Jun-01 5:03
suss4-Jun-01 5:03 
QuestionSend Message? Pin
Kyle3-Jun-01 16:07
Kyle3-Jun-01 16:07 
AnswerRe: Send Message? Pin
Tomasz Sowinski4-Jun-01 1:22
Tomasz Sowinski4-Jun-01 1:22 
Generalcontrolling an ungracefull program kill Pin
3-Jun-01 16:01
suss3-Jun-01 16:01 
Hi, I am working on a free Internet program that is almost done. I have only one problem that keeps hunting me. I need to find a way to make this program bullet proof. The way this software works is that the user installs a piece of software on there computer. When the user wants to use free internet he starts the program and the program dials a local phone number. The software then displays a banner window on the screen where banners are rotated every 35 seconds.

I have implemented a system where the user cannot use cntrl-alt-dlete keys to get rid of the software. But this is not good enough since there is a software called system properties that allows one to view all the processes in windows and also kill them.
My problem is when the banner window is killed the connection stays alive. It is not also killed together with the software. I use windows dial up networking to make the connection.

To counter this I have implemented a DLL that monitors if the banner window is running or not. If the DLL senses that the banner window is not running then it will kill the connection.
The DLL checks the bannerwindow every 2 to 4 minutes.
What happens now is that this DLL is making the banner window act very slow. When a user clicks on an advertisers banner it opens up the window after 55 seconds. I have also some buttons with direct links on the bannerwindow. When the user clicks on these it will open the banner window also in 55 seconds.

I would like to get rid of this DLL and look for a different solution.

Does anybody know how to keep a program alive (when it has been end tasked from the task manager) enough time so the program can send a string to the modem to kill the connection together with the program?

Or does anybody know of any other solution?
That will have the same effect. Thus killing the connection when the program is being ungracefully killed also. So, banner window and connection must be killed together.

Thanks in advance,
Raymond
GeneralRe: How about Timer or Thread? Pin
Masaaki Onishi3-Jun-01 17:08
Masaaki Onishi3-Jun-01 17:08 
GeneralRe: How about Timer or Thread? Pin
3-Jun-01 17:30
suss3-Jun-01 17:30 
GeneralRe: How about Timer or Thread? Pin
3-Jun-01 18:16
suss3-Jun-01 18:16 
GeneralRe: controlling an ungracefull program kill Pin
Ben Burnett3-Jun-01 20:31
Ben Burnett3-Jun-01 20:31 
Generalgetline() Pin
3-Jun-01 14:53
suss3-Jun-01 14:53 
GeneralRe: getline() Pin
Christian Graus3-Jun-01 15:31
protectorChristian Graus3-Jun-01 15:31 
GeneralInternet connection.... Pin
Rickard Andersson203-Jun-01 10:29
Rickard Andersson203-Jun-01 10:29 
GeneralRe: Internet connection.... Pin
Pavlos Touboulidis3-Jun-01 16:59
Pavlos Touboulidis3-Jun-01 16:59 
QuestionHow to disable a menu during runtime Pin
3-Jun-01 9:01
suss3-Jun-01 9:01 
AnswerRe: How to disable a menu during runtime Pin
Igor Sukhov3-Jun-01 9:13
Igor Sukhov3-Jun-01 9:13 
GeneralRe: How to disable a menu during runtime Pin
6-Jun-01 8:26
suss6-Jun-01 8:26 
QuestionHow move a component ? Pin
3-Jun-01 3:26
suss3-Jun-01 3:26 
AnswerRe: How move a component ? Pin
Igor Sukhov3-Jun-01 5:47
Igor Sukhov3-Jun-01 5:47 
GeneralThank-you ! [nt] Pin
3-Jun-01 7:40
suss3-Jun-01 7:40 
GeneralMPEG !!! Pin
Hadi Rezaee2-Jun-01 20:18
Hadi Rezaee2-Jun-01 20:18 
GeneralRe: MPEG !!! Pin
Christian Graus2-Jun-01 23:36
protectorChristian Graus2-Jun-01 23:36 
GeneralRe: MPEG !!! Pin
Hadi Rezaee3-Jun-01 1:47
Hadi Rezaee3-Jun-01 1:47 

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.