Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating an automated build process - where do I start? Pin
David Crow30-Nov-05 10:49
David Crow30-Nov-05 10:49 
GeneralRe: Creating an automated build process - where do I start? Pin
Ian Bowler30-Nov-05 10:52
Ian Bowler30-Nov-05 10:52 
GeneralRe: Creating an automated build process - where do I start? Pin
PJ Arends30-Nov-05 10:57
professionalPJ Arends30-Nov-05 10:57 
GeneralRe: Creating an automated build process - where do I start? Pin
Ian Bowler30-Nov-05 11:04
Ian Bowler30-Nov-05 11:04 
GeneralRe: Creating an automated build process - where do I start? Pin
Graham Bradshaw30-Nov-05 11:39
Graham Bradshaw30-Nov-05 11:39 
AnswerRe: Creating an automated build process - where do I start? Pin
Graham Bradshaw30-Nov-05 11:38
Graham Bradshaw30-Nov-05 11:38 
AnswerRe: Creating an automated build process - where do I start? Pin
SilentSilent1-Dec-05 0:28
SilentSilent1-Dec-05 0:28 
QuestionDialup internet connections Pin
PJ Arends30-Nov-05 9:25
professionalPJ Arends30-Nov-05 9:25 
Hey

I have an app that needs to be able to connect to the internet at anytime, unattended, day or night. What I have done in the past is called InternetAttemptConnect(). But in order for this to work I had to make sure that I allowed my dialup connection to connect automatically. But thanks to some poorly written apps (Firefox, ZoneAlarm) that option is no longer becoming viable as those apps are also able to connect at any time (and they do). So what I did was change the connection call from InternetAttemptConnect() to InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED,...) which allows me to clear the automatically connect flag in the dialup dialog and still be able to make the internet connection my app has to make, but stop the other apps from doing the same.

But that has lead to another problem. If the dialup dialog is started by one of the other apps and is waiting for user input, InternetAutodial will also hang, waiting for the same user input.

So what I would like to know is if there is an API or other way of telling if the dialup dialog is already present, and if so how can I kill it so that my call to InternetAutodial() will succeed? I could use FindWindow to look for a dialog with the caption "Dial-up Connection" but to me that just doesn't seem to be a very safe or portable way to it.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
QuestionRe: Dialup internet connections Pin
David Crow30-Nov-05 9:33
David Crow30-Nov-05 9:33 
AnswerRe: Dialup internet connections Pin
PJ Arends30-Nov-05 9:48
professionalPJ Arends30-Nov-05 9:48 
QuestionRe: Dialup internet connections Pin
David Crow30-Nov-05 9:59
David Crow30-Nov-05 9:59 
AnswerRe: Dialup internet connections Pin
PJ Arends30-Nov-05 10:09
professionalPJ Arends30-Nov-05 10:09 
GeneralRe: Dialup internet connections Pin
David Crow30-Nov-05 10:29
David Crow30-Nov-05 10:29 
GeneralRe: Dialup internet connections Pin
PJ Arends30-Nov-05 10:45
professionalPJ Arends30-Nov-05 10:45 
GeneralRe: Dialup internet connections Pin
David Crow30-Nov-05 10:57
David Crow30-Nov-05 10:57 
GeneralRe: Dialup internet connections Pin
PJ Arends30-Nov-05 11:05
professionalPJ Arends30-Nov-05 11:05 
QuestionRe: Dialup internet connections Pin
Shog930-Nov-05 12:09
sitebuilderShog930-Nov-05 12:09 
AnswerRe: Dialup internet connections Pin
PJ Arends30-Nov-05 15:06
professionalPJ Arends30-Nov-05 15:06 
GeneralRe: Dialup internet connections Pin
Shog930-Nov-05 15:30
sitebuilderShog930-Nov-05 15:30 
GeneralRe: Dialup internet connections Pin
David Crow1-Dec-05 4:05
David Crow1-Dec-05 4:05 
GeneralRe: Dialup internet connections Pin
PJ Arends1-Dec-05 12:32
professionalPJ Arends1-Dec-05 12:32 
Questionfile browser in Win32 API / Visual C++ Pin
pplshero5430-Nov-05 9:21
pplshero5430-Nov-05 9:21 
QuestionRe: file browser in Win32 API / Visual C++ Pin
David Crow30-Nov-05 9:31
David Crow30-Nov-05 9:31 
AnswerRe: file browser in Win32 API / Visual C++ Pin
pplshero5430-Nov-05 9:39
pplshero5430-Nov-05 9:39 
GeneralRe: file browser in Win32 API / Visual C++ Pin
David Crow30-Nov-05 10:07
David Crow30-Nov-05 10:07 

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.