Detecting an internet connection
i am having a shared internet connection on LAN with a local server connected to cable net. i wanted to check internet connection with the remote server before putting a request for a particular page in my partner project. The code given below worked for my purpose,
CInternetSession session;
CStdioFile* myfile;
try
{
myfile=session.OpenURL("http://www.indosoftsys.com");
MessageBox("Internet Connection Exits");
}
catch(CInternetException* ie)
{
char errMsg[80];
ie->GetErrorMessage(errMsg,80);
strcat(errMsg,"Check your internet connection or Server name");
MessageBox(errMsg);
}
Re: Detecting an internet connection
Quote:
Originally posted by je_e_tu
i am having a shared internet connection on LAN with a local server connected to cable net. i wanted to check internet connection with the remote server before putting a request for a particular page in my partner project. The code given below worked for my purpose,
This thread is already 6 pages. I think it would have been better if a new thread in this forum were used to ask this question instead of adding the question to this thread.
Re: Re: Detecting an internet connection
Quote:
Originally posted by Sam Hobbs
This thread is already 6 pages. I think it would have been better if a new thread in this forum were used to ask this question instead of adding the question to this thread.
I think it is entirely pertinent to ask the question here, as it is in context with the rest of thread...
It would be better to discuss this topic and possible solutions within the same context, rather than to fragment it across several posts, making any future miracle cure harder to find.
Re: Re: Re: Re: Detecting an internet connection
Quote:
Originally posted by Sam Hobbs
Is the new question the same question as the original question or is it different (whether related or not)?
Hi Sam
The post you have quoted is not a question, it is a suggestion for how to detect an internet connection - which is what this thread asks for.
I agree with you in principal Sam - but in this case your objection does not seem reasonable. Perhaps you quoted the wrong post?
Re: Re: Re: Re: Re: Detecting an internet connection
Quote:
Originally posted by jase jennings
The post you have quoted is not a question, it is a suggestion for how to detect an internet connection - which is what this thread asks for.
I agree with you in principal Sam - but in this case your objection does not seem reasonable. Perhaps you quoted the wrong post?
I think you are correct; I made a mistake. I don't know why I thought it was a question.
Since this is the first and only post from je_e_tu, I have made a bad impression on je_e_tu. I am sorry. I hope je_e_tu continues to help.
Re: Re: Re: Re: Re: Re: Detecting an internet connection
Quote:
Originally posted by Sam Hobbs
I think you are correct; I made a mistake. I don't know why I thought it was a question.
Since this is the first and only post from je_e_tu, I have made a bad impression on je_e_tu. I am sorry. I hope je_e_tu continues to help.
No problem Sam. I also hope he continues to contribute. Same goes for Bob Sheep.