I am from Hungary and just beginning coding with
WinINet.dll using Delphi. My problem is to check if I can
request sites from the Internet (check if
InternetConnection is established wether via Lan or Dial-
Up connection). When I call to this function called
InternetCheckConnection I get the 2250 error code that my
Network Connection does not exits, although I can browsing
in IE without any problem I always get 'false' as return
value of this function. I think the
FLAG_ICC_FORCE_CONNECTION flag is set incorrectly to 0 but
there is no example what to set it to. Maybe I send some
code example for my problem:
Service := InternetCheckConnection
( 'http://www.microsoft.com' , FLAG_ICC_FORCE_CONNECTION ,
0);
Showmessage(IntToStr(GetlastError));
This way is the easiest I could find checking my
connection is established to the Internet, but maybe there
is another way or other function to make it. I need help
it is OK if the replying code is in C++.
Thanks Forward
carstep
Alex Bolla <x...@freemail.hu> wrote in message
news:968f01c20628$c0f67130$35ef2ecf@TKMSFTNGXA11...
Thx
I tried out what you wrote but it won't work because I
have to describe my Environment:
- w98
- Internet via LAN without proxy
My steps were the folloing:
- I used as mentioned the GetHostByName funtcion
- but even when I broke my LAN connection (cable out of PC)
I checked th errors vith WSAGetLastError but it gives me
back 0 as result whether I have LAN connection or not
I don't know what do as next please help if you can It's
important
carstep
>.
>
Alex Bolla <x...@freemail.hu> wrote in message
news:8c9501c20651$009a1210$3bef2ecf@TKMSFTNGXA10...
arkadyf <ark...@hotmail.com> wrote in message
news:OfSFKQtBCHA.2296@tkmsftngp05...
no problem, just easy to say I want to start my program as
IE do when a start-page is defined. It's very fast and as
I understand you have a hot-line to Microsoft
thx >>
carstep
>> > >> InternetCheckConnection I get the 2250 errorÍ
{ wÀ f aN´ \NÜN' ìþ code that
no problem, just easy to say I want to start my program as
IE do when a start-page is defined. It's very fast and as
I understand you have a hot-line to Microsoft
thx >>
carstep
>> > >> InternetCheckConnection I get the 2250 errorÍ
{ wÀ f aN´ \NÜN' ìþ code that
carstep <x...@freemail.hu> wrote in message
news:97fb01c207e7$213f94d0$19ef2ecf@tkmsftngxa01...
HI,
thx >>
carstep
>> > >Pay attention that no "file://http:" before
www.microsoft.com
>> > ( at least in C/C++
>> > >:) ).
>> > >Arkady
>> > >
>> > >Alex Bolla <x...@freemail.hu> wrote in message
>> > >news:968f01c20628$c0f67130$35ef2ecf@TKMSFTNGXA11...
>> > >> Hi,
>> > >>
>> > >> I am from Hungary and just beginning coding with
>> > >> WinINet.dll using Delphi. My problem is to check
if I
>> > can
>> > >> request sites from the Internet (check if
>> > >> InternetConnection is established wether via Lan or
>> > Dial-
>> > >> Up connection). When I call to this function called
>> > >> InternetCheckConnection I get the 2250 errorヘ
{掫タ f aNエ \NワN' � code that