Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4467 > unrolled thread
| Started by | danijel koprivnjak <danijel.koprivnjak@gmail.com> |
|---|---|
| First post | 2012-12-14 01:14 -0800 |
| Last post | 2012-12-18 23:33 -0500 |
| Articles | 13 — 8 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Check internet connection danijel koprivnjak <danijel.koprivnjak@gmail.com> - 2012-12-14 01:14 -0800
Re: Check internet connection Camille Kater <katercamXXX@pt.lu> - 2012-12-14 10:54 +0100
Re: Check internet connection danijel koprivnjak <danijel.koprivnjak@gmail.com> - 2012-12-14 03:21 -0800
Re: Check internet connection danijel koprivnjak <danijel.koprivnjak@gmail.com> - 2012-12-14 04:09 -0800
Re: Check internet connection elchuneme <jzertucherodriguez@gmail.com> - 2012-12-14 18:31 -0800
Re: Check internet connection "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-12-15 22:14 +0100
Re: Check internet connection elchuneme <jzertucherodriguez@gmail.com> - 2012-12-15 14:30 -0800
Re: Check internet connection "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-12-15 23:33 +0100
Re: Check internet connection James Martin <jmmicmc@cyg.net> - 2012-12-18 05:44 -0800
Re: Check internet connection Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2012-12-18 14:13 +0000
Re: Check internet connection James Martin <jmmicmc@cyg.net> - 2012-12-18 06:48 -0800
Re: Check internet connection Meinhard Schnoor-Matriciani <msm@appfact.de> - 2012-12-18 15:45 +0100
Re: Check internet connection "Jamal" <vodotnet_nospam@yahoo.com> - 2012-12-18 23:33 -0500
| From | danijel koprivnjak <danijel.koprivnjak@gmail.com> |
|---|---|
| Date | 2012-12-14 01:14 -0800 |
| Subject | Check internet connection |
| Message-ID | <c61b3fc6-312f-4045-93d6-2b02075dfcd5@googlegroups.com> |
hi, how to easiest check internet connection on computer (status on off ) from VO 2.7 thx Danijel
[toc] | [next] | [standalone]
| From | Camille Kater <katercamXXX@pt.lu> |
|---|---|
| Date | 2012-12-14 10:54 +0100 |
| Message-ID | <50CAF75D.6080101@pt.lu> |
| In reply to | #4467 |
Hi, FUNCTION IsInternetConnected() AS LOGIC LOCAL lResult AS LOGIC LOCAL nFlags AS DWORD lResult := InternetGetConnectedState(@nFlags, 0) RETURN lResult Camille On 14/12/2012 10:14, danijel koprivnjak wrote: > hi, > how to easiest check internet connection on computer (status on off ) > from VO 2.7 > thx > Danijel >
[toc] | [prev] | [next] | [standalone]
| From | danijel koprivnjak <danijel.koprivnjak@gmail.com> |
|---|---|
| Date | 2012-12-14 03:21 -0800 |
| Message-ID | <1a6281a0-e563-42c7-8cc2-1037d11da2d7@googlegroups.com> |
| In reply to | #4468 |
thx Camille but after compiling I have error InternetGetConnectedState is unknown Danijel Dana petak, 14. prosinca 2012. 10:54:37 UTC+1, korisnik Camille Kater napisao je: > Hi, > > > > FUNCTION IsInternetConnected() AS LOGIC > > LOCAL lResult AS LOGIC > > LOCAL nFlags AS DWORD > > > > lResult := InternetGetConnectedState(@nFlags, 0) > > > > RETURN lResult > > > > > > Camille > > > > On 14/12/2012 10:14, danijel koprivnjak wrote: > > > hi, > > > how to easiest check internet connection on computer (status on off ) > > > from VO 2.7 > > > thx > > > Danijel > > >
[toc] | [prev] | [next] | [standalone]
| From | danijel koprivnjak <danijel.koprivnjak@gmail.com> |
|---|---|
| Date | 2012-12-14 04:09 -0800 |
| Message-ID | <001d0957-ee2e-43da-ad33-beea470e4088@googlegroups.com> |
| In reply to | #4469 |
sorry it is _DLL function everything is ok thx Dana petak, 14. prosinca 2012. 12:21:44 UTC+1, korisnik danijel koprivnjak napisao je: > thx Camille > > but after compiling I have error InternetGetConnectedState is unknown > > > > Danijel > > Dana petak, 14. prosinca 2012. 10:54:37 UTC+1, korisnik Camille Kater napisao je: > > > Hi, > > > > > > > > > > > > FUNCTION IsInternetConnected() AS LOGIC > > > > > > LOCAL lResult AS LOGIC > > > > > > LOCAL nFlags AS DWORD > > > > > > > > > > > > lResult := InternetGetConnectedState(@nFlags, 0) > > > > > > > > > > > > RETURN lResult > > > > > > > > > > > > > > > > > > Camille > > > > > > > > > > > > On 14/12/2012 10:14, danijel koprivnjak wrote: > > > > > > > hi, > > > > > > > how to easiest check internet connection on computer (status on off ) > > > > > > > from VO 2.7 > > > > > > > thx > > > > > > > Danijel > > > > > > >
[toc] | [prev] | [next] | [standalone]
| From | elchuneme <jzertucherodriguez@gmail.com> |
|---|---|
| Date | 2012-12-14 18:31 -0800 |
| Message-ID | <12d8ced8-90b1-4fba-85bd-7c93d22a1b31@googlegroups.com> |
| In reply to | #4470 |
Which dll is the one that has the function IsInternetConnected() ? El viernes, 14 de diciembre de 2012 06:09:07 UTC-6, danijel koprivnjak escribió: > sorry it is _DLL function > > everything is ok > > thx > > > > Dana petak, 14. prosinca 2012. 12:21:44 UTC+1, korisnik danijel koprivnjak napisao je: > > > thx Camille > > > > > > but after compiling I have error InternetGetConnectedState is unknown > > > > > > > > > > > > Danijel > > > > > > Dana petak, 14. prosinca 2012. 10:54:37 UTC+1, korisnik Camille Kater napisao je: > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > FUNCTION IsInternetConnected() AS LOGIC > > > > > > > > > > > > > > LOCAL lResult AS LOGIC > > > > > > > > > > > > > > LOCAL nFlags AS DWORD > > > > > > > > > > > > > > > > > > > > > > > > > > > > lResult := InternetGetConnectedState(@nFlags, 0) > > > > > > > > > > > > > > > > > > > > > > > > > > > > RETURN lResult > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Camille > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 14/12/2012 10:14, danijel koprivnjak wrote: > > > > > > > > > > > > > > > hi, > > > > > > > > > > > > > > > how to easiest check internet connection on computer (status on off ) > > > > > > > > > > > > > > > from VO 2.7 > > > > > > > > > > > > > > > thx > > > > > > > > > > > > > > > Danijel > > > > > > > > > > > > > > >
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2012-12-15 22:14 +0100 |
| Message-ID | <aj47leFf2igU1@mid.individual.net> |
| In reply to | #4471 |
Hi .... If you right click to the function name, a window with the func-prototype appears. Then click to GOTO: and you will se the DLL in the title of the VO window. Server did not accept attached screeenshots. Check your mail. regards Urs "elchuneme" <jzertucherodriguez@gmail.com> schrieb im Newsbeitrag news:12d8ced8-90b1-4fba-85bd-7c93d22a1b31@googlegroups.com... Which dll is the one that has the function IsInternetConnected() ? El viernes, 14 de diciembre de 2012 06:09:07 UTC-6, danijel koprivnjak escribió: > sorry it is _DLL function > > everything is ok > > thx > > > > Dana petak, 14. prosinca 2012. 12:21:44 UTC+1, korisnik danijel koprivnjak > napisao je: > > > thx Camille > > > > > > but after compiling I have error InternetGetConnectedState is unknown > > > > > > > > > > > > Danijel > > > > > > Dana petak, 14. prosinca 2012. 10:54:37 UTC+1, korisnik Camille Kater > > napisao je: > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > FUNCTION IsInternetConnected() AS LOGIC > > > > > > > > > > > > > > LOCAL lResult AS LOGIC > > > > > > > > > > > > > > LOCAL nFlags AS DWORD > > > > > > > > > > > > > > > > > > > > > > > > > > > > lResult := InternetGetConnectedState(@nFlags, 0) > > > > > > > > > > > > > > > > > > > > > > > > > > > > RETURN lResult > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Camille > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 14/12/2012 10:14, danijel koprivnjak wrote: > > > > > > > > > > > > > > > hi, > > > > > > > > > > > > > > > how to easiest check internet connection on computer (status on > > > > off ) > > > > > > > > > > > > > > > from VO 2.7 > > > > > > > > > > > > > > > thx > > > > > > > > > > > > > > > Danijel > > > > > > > > > > > > > > >
[toc] | [prev] | [next] | [standalone]
| From | elchuneme <jzertucherodriguez@gmail.com> |
|---|---|
| Date | 2012-12-15 14:30 -0800 |
| Message-ID | <a85e17d1-535d-4d49-9957-3f5e0660d1a3@googlegroups.com> |
| In reply to | #4472 |
El sábado, 15 de diciembre de 2012 15:14:08 UTC-6, Urs Eggmann escribió: Urs: Could you send me your email again please... Thanks in advance. > Hi .... > > > > If you right click to the function name, a window with the func-prototype > > appears. Then click to GOTO: and you will se the DLL in the title of the VO > > window. Server did not accept attached screeenshots. Check your mail. > > > > regards > > Urs > > > > "elchuneme" <jzertucherodriguez@gmail.com> schrieb im Newsbeitrag > > news:12d8ced8-90b1-4fba-85bd-7c93d22a1b31@googlegroups.com... > > Which dll is the one that has the function IsInternetConnected() ? > > > > El viernes, 14 de diciembre de 2012 06:09:07 UTC-6, danijel koprivnjak > > escribió: > > > sorry it is _DLL function > > > > > > everything is ok > > > > > > thx > > > > > > > > > > > > Dana petak, 14. prosinca 2012. 12:21:44 UTC+1, korisnik danijel koprivnjak > > > napisao je: > > > > > > > thx Camille > > > > > > > > > > > > > > but after compiling I have error InternetGetConnectedState is unknown > > > > > > > > > > > > > > > > > > > > > > > > > > > > Danijel > > > > > > > > > > > > > > Dana petak, 14. prosinca 2012. 10:54:37 UTC+1, korisnik Camille Kater > > > > napisao je: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > FUNCTION IsInternetConnected() AS LOGIC > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > LOCAL lResult AS LOGIC > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > LOCAL nFlags AS DWORD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > lResult := InternetGetConnectedState(@nFlags, 0) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > RETURN lResult > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Camille > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 14/12/2012 10:14, danijel koprivnjak wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > how to easiest check internet connection on computer (status on > > > > > > off ) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > from VO 2.7 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > thx > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Danijel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2012-12-15 23:33 +0100 |
| Message-ID | <aj4c64Fg2puU1@mid.individual.net> |
| In reply to | #4473 |
Hi, I sent it to jzertucherodriguez@gmail.com is that correct? Urs "elchuneme" <jzertucherodriguez@gmail.com> schrieb im Newsbeitrag news:a85e17d1-535d-4d49-9957-3f5e0660d1a3@googlegroups.com... El sábado, 15 de diciembre de 2012 15:14:08 UTC-6, Urs Eggmann escribió: Urs: Could you send me your email again please... Thanks in advance. > Hi .... > > > > If you right click to the function name, a window with the func-prototype > > appears. Then click to GOTO: and you will se the DLL in the title of the > VO > > window. Server did not accept attached screeenshots. Check your mail. > > > > regards > > Urs > > > > "elchuneme" <jzertucherodriguez@gmail.com> schrieb im Newsbeitrag > > news:12d8ced8-90b1-4fba-85bd-7c93d22a1b31@googlegroups.com... > > Which dll is the one that has the function IsInternetConnected() ? > > > > El viernes, 14 de diciembre de 2012 06:09:07 UTC-6, danijel koprivnjak > > escribió: > > > sorry it is _DLL function > > > > > > everything is ok > > > > > > thx > > > > > > > > > > > > Dana petak, 14. prosinca 2012. 12:21:44 UTC+1, korisnik danijel > > koprivnjak > > > napisao je: > > > > > > > thx Camille > > > > > > > > > > > > > > but after compiling I have error InternetGetConnectedState is unknown > > > > > > > > > > > > > > > > > > > > > > > > > > > > Danijel > > > > > > > > > > > > > > Dana petak, 14. prosinca 2012. 10:54:37 UTC+1, korisnik Camille Kater > > > > napisao je: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > FUNCTION IsInternetConnected() AS LOGIC > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > LOCAL lResult AS LOGIC > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > LOCAL nFlags AS DWORD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > lResult := InternetGetConnectedState(@nFlags, 0) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > RETURN lResult > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Camille > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 14/12/2012 10:14, danijel koprivnjak wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > how to easiest check internet connection on computer (status on > > > > > > off ) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > from VO 2.7 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > thx > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Danijel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
[toc] | [prev] | [next] | [standalone]
| From | James Martin <jmmicmc@cyg.net> |
|---|---|
| Date | 2012-12-18 05:44 -0800 |
| Message-ID | <0e65dac5-a77f-402d-9946-11a5867fa4e7@googlegroups.com> |
| In reply to | #4468 |
This doesn't work for me. This morning our Internet connection was down, but this function said it was OK. Do you know what this function does to test for Internet? James
[toc] | [prev] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2012-12-18 14:13 +0000 |
| Message-ID | <XR_zs.966289$vW7.795397@fx19.am4> |
| In reply to | #4486 |
On 18/12/2012 13:44, James Martin wrote: > This doesn't work for me. This morning our Internet connection was down, but this function said it was OK. Do you know what this function does to test for Internet? MS say http://msdn.microsoft.com/en-us/library/windows/desktop/aa384702%28v=vs.85%29.aspx which is not particularly informative.
[toc] | [prev] | [next] | [standalone]
| From | James Martin <jmmicmc@cyg.net> |
|---|---|
| Date | 2012-12-18 06:48 -0800 |
| Message-ID | <9339c9b8-ff44-44d5-8d4a-7691a5647e0e@googlegroups.com> |
| In reply to | #4487 |
I take it that it only checks that the modem us up and running, no an actual check to the Internet. James On Tuesday, 18 December 2012 09:13:10 UTC-5, Malcolm G wrote: > On 18/12/2012 13:44, James Martin wrote: > > > This doesn't work for me. This morning our Internet connection was down, but this function said it was OK. Do you know what this function does to test for Internet? > > > > MS say > > > > http://msdn.microsoft.com/en-us/library/windows/desktop/aa384702%28v=vs.85%29.aspx > > > > which is not particularly informative.
[toc] | [prev] | [next] | [standalone]
| From | Meinhard Schnoor-Matriciani <msm@appfact.de> |
|---|---|
| Date | 2012-12-18 15:45 +0100 |
| Message-ID | <50d081d4$0$9502$3ca0ca56@newsspool1.vodafone-ip.de> |
| In reply to | #4486 |
James, AFAIK, this function is not a way solid way to test if your able to connect a server somewhere in the internet ( if this is what you want to test ). In a LAN/WLAN it indicates that your PC is connected to the infrastructure not more. Lets say you have a LAN with x PC's and a router which is connected to a DSL line. If plug out your DSL connection, the function will still indicate that you're connected to the internet. From my point of view you need to do two things : 1. Use InternetGetConnectedState to determine that your hardware is connected to the infrastructure, if this fails your done otherwise you should do 2. 2. Try to set up a socket connection to a well known internet address if this fails you do not have access to the internet. The problem is the server you're goning to connect to, because this might be down. I personally think that the DNS server (or another server which is part of your providers infrastucture) of your provider would be the best choice, because if this one is down you probably can't work anyway, because your provider is down. Anyway, even this is not rock solid. Pinging a server might not help, as ICMP request might be disabled on the server side. So the bottom line is, there's no reliable way to check that you're internet connections work, unless you try to connect to the server you need. If this fails it might have at least two reasons - server down - no internet connection An easier way to do the two things above is to use InternetCheckConnection as describe here : http://msdn.microsoft.com/en-us/library/aa384346(VS.85).aspx Regards Meinhard Am 18.12.2012 14:44, schrieb James Martin: > This doesn't work for me. This morning our Internet connection was down, but this function said it was OK. Do you know what this function does to test for Internet? > > James > -- Meinhard Schnoor-Matriciani Grafx Development Team
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Date | 2012-12-18 23:33 -0500 |
| Message-ID | <karg29$cge$1@dont-email.me> |
| In reply to | #4467 |
All,
Here is my take on this subject.
Use VO cHttp class! Check for a website that is hardly ever down. Turn
on/off your internet connection and test. It works.
FUNCTION IsInternetConnection() AS LOGIC PASCAL
LOCAL oMyHttp AS cHttp
LOCAL lOk AS LOGIC
oMyHttp := CHttp{}
lOk := ( SLen(oMyHttp:GetDocumentByURL("http://microsoft.com")) > 0 )
RETURN lOk
// Sample usage:
FUNCTION Start()
InfoBox{, "", IIF(IsInternetConnection(), "Internet Up", "Internet
Down")}:show()
RETURN NIL
Hope this helps!
Jamal Assaf
Make sure you add the Internet libs to your project.
"danijel koprivnjak" wrote in message
news:c61b3fc6-312f-4045-93d6-2b02075dfcd5@googlegroups.com...
hi,
how to easiest check internet connection on computer (status on off )
from VO 2.7
thx
Danijel
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web