🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: indy ping exmaple

#1532
From: Remy Lebeau (TeamB)
Date: Thu, 02 Dec 2004 22:15
32 lines
2161 bytes
"John M." <johnnym@yahoo.com> wrote in message
news:41af8bb4@newsgroups.borland.com...

> the Ping function need two parameters, that is why my code does
> not work. i get this error messages:
<snip>
> Means like "To few parameters in call of '_fastcall
> TIdIcmpClient::Ping(AnsiString,unsigned short)'"

Specify 0 for the second parameter.  That is its default value.

Since you did not specify which version of BCB you are actualing using, I am
going to assume that you are using a version prior to BCB6.  The Delphi
compiler in older BCB versions, particularly BCB5, has a bug where default
parameters for functions and methods are not recognized properly when
generating an HPP header file from Delphi source code.  That bug has been
corrected in BCB6.

> Means like "Pointer of structure on the left site from -> or
> from ->* necessarily

Change references like this:

    IdIcmpClient1->ReplyStatus->SomeFieldName

To this instead:

    IdIcmpClient1->ReplyStatus.SomeFieldName


Gambit
Technical Details
Message-ID: <41af93ff$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41ae5b3a@newsgroups.borland.com> <41ae71eb@newsgroups.borland.com> <41af0a1b@newsgroups.borland.com> <41af5738$1@newsgroups.borland.com> <41af8bb4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,fa101c2ed92ef067
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <41ae5b3a@newsgroups.borland.com> <41ae71eb@newsgroups.borland.com> <41af0a1b@newsgroups.borland.com> <41af5738$1@newsgroups.borland.com> <41af8bb4@newsgroups.borland.com>
Subject: Re: indy ping exmaple
Date: Thu, 2 Dec 2004 14:15:24 -0800
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41af93ff$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102025727 68.69.17.41 (2 Dec 2004 14:15:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail