🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1757

Re: InternetGetConnectedState

#1757
From: Safari
Date: Fri, 23 Jul 2004 22:41
38 lines
1778 bytes
Hello Remy,
Error...!

bool __fastcall GetOnline()
{
   DWORD Flag = 0;
   return InternetGetConnectedState(&Flag, 0);
}

void __fastcall TMain::Button1Click(TObject *Sender)
{
   Timer->Enabled = GetOnline();
}

Thanks,
Safari

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:4100849c@newsgroups.borland.com...
|
| "Safari" <Safari@alloymail.com> wrote in message
| news:41005838@newsgroups.borland.com...
|
| > Error...!
|
| For future reference, please always specify what the errors actually are.
|
| >    WORD Flags;
| >    return InternetGetConnectedState(Flags, 0);
|
| InternetGetConnectedState() expects a pointer for the first parameter.
Use
| the '&' operator for that, ie:
|
|     WORD Flags = 0;
|     return InternetGetConnectedState(&Flags, 0);
|
| Gambit
Technical Details
Message-ID: <41019b63@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41005838@newsgroups.borland.com> <4100849c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,74f413f32f31e826
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Safari" <Safari@alloymail.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <41005838@newsgroups.borland.com> <4100849c@newsgroups.borland.com>
Subject: Re: InternetGetConnectedState
Date: Sat, 24 Jul 2004 03:11:15 +0430
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.242.8.195
Message-ID: <41019b63@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090624355 80.242.8.195 (23 Jul 2004 16:12:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail