Click here to Skip to main content
16,004,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: painting problem Pin
l a u r e n6-Jan-02 7:22
l a u r e n6-Jan-02 7:22 
GeneralRe: painting problem Pin
6-Jan-02 7:43
suss6-Jan-02 7:43 
GeneralRe: painting problem Pin
Christian Graus6-Jan-02 10:46
protectorChristian Graus6-Jan-02 10:46 
GeneralDetermine whether connected to internet Pin
Jase Jennings6-Jan-02 4:10
Jase Jennings6-Jan-02 4:10 
GeneralRe: Determine whether connected to internet Pin
l a u r e n6-Jan-02 7:25
l a u r e n6-Jan-02 7:25 
GeneralRe: Determine whether connected to internet Pin
Jase Jennings6-Jan-02 22:09
Jase Jennings6-Jan-02 22:09 
GeneralRe: Determine whether connected to internet Pin
Nish Nishant6-Jan-02 18:20
sitebuilderNish Nishant6-Jan-02 18:20 
GeneralRe: Determine whether connected to internet Pin
Jase Jennings6-Jan-02 22:25
Jase Jennings6-Jan-02 22:25 
But InetIsOffline() doesn't check for an internet connection. It merely checks to see if you have selected "Work Offline" in IE or Outlook.

<-- Snippet from MSDN -->
"Returns TRUE if the local system in not currently connected to the Internet. Returns FALSE if the local system is connected to the Internet or if no attempt has yet been made to connect to the Internet"
<-- Snippet End -->

By default, Windows assumes that you are connected to the internet as soon as you log on to Windows. The result of this is that InetIsOffline() will inform you that you are connected to the internet even if you are not, simply because you are not in 'Work Offline' mode ...

I'm beginning to doubt that the holy grail exists and am forming the opinion that there are no sdk or api functions that can reliably tell ou whether or not you are connected to the internet, and - this is the most important bit - not throw a dialup box if you are not connected.

?

Jase

-------------------------------------------------------------------------------------------------------------------------------------------------------------------
View your digital photos and images with ease using the ultimate desktop image manager for Microsoft Windows
Download your free copy of SlideShow Desktop today from http://www.slideshowdesktop.com
GeneralRe: Determine whether connected to internet Pin
Nish Nishant6-Jan-02 22:58
sitebuilderNish Nishant6-Jan-02 22:58 
GeneralMicrosoft Installer Pin
Nnamdi Onyeyiri6-Jan-02 1:37
Nnamdi Onyeyiri6-Jan-02 1:37 
GeneralRe: Microsoft Installer Pin
Ravi Bhavnani6-Jan-02 4:46
professionalRavi Bhavnani6-Jan-02 4:46 
Generalheap problems... Pin
drummer5-Jan-02 18:35
drummer5-Jan-02 18:35 
GeneralRe: heap problems... Pin
Michael Dunn5-Jan-02 18:41
sitebuilderMichael Dunn5-Jan-02 18:41 
GeneralRe: heap problems... Pin
drummer6-Jan-02 12:32
drummer6-Jan-02 12:32 
QuestionWhat would cause strtok to fail? Pin
Stephen Caldwell5-Jan-02 8:23
Stephen Caldwell5-Jan-02 8:23 
AnswerRe: What would cause strtok to fail? Pin
Ravi Bhavnani5-Jan-02 8:36
professionalRavi Bhavnani5-Jan-02 8:36 
GeneralRe: What would cause strtok to fail? Pin
Stephen Caldwell5-Jan-02 8:47
Stephen Caldwell5-Jan-02 8:47 
QuestionProper MSComm usage? Pin
5-Jan-02 6:51
suss5-Jan-02 6:51 
GeneralFine a file Pin
Jon Newman5-Jan-02 6:30
Jon Newman5-Jan-02 6:30 
GeneralRe: Fine a file Pin
Michael Dunn5-Jan-02 6:49
sitebuilderMichael Dunn5-Jan-02 6:49 
GeneralRemoving *Unchanged* Output File (ofstream) :: C++ Pin
valikac5-Jan-02 6:00
valikac5-Jan-02 6:00 
GeneralRe: Removing *Unchanged* Output File (ofstream) :: C++ Pin
Daniel Turini6-Jan-02 22:58
Daniel Turini6-Jan-02 22:58 
GeneralRe: Removing *Unchanged* Output File (ofstream) :: C++ Pin
valikac7-Jan-02 8:28
valikac7-Jan-02 8:28 
Questionextern? Pin
Stan the man5-Jan-02 3:56
Stan the man5-Jan-02 3:56 
AnswerRe: extern? Pin
Chris Losinger5-Jan-02 4:14
professionalChris Losinger5-Jan-02 4:14 

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.