Article View: borland.public.cppbuilder.nativeapi
Article #4678Re: all IP adresses of the local system
From: Dennis Jones
Date: Tue, 20 Dec 2005 20:11
Date: Tue, 20 Dec 2005 20:11
26 lines
1790 bytes
1790 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:43a84c2d$1@newsgroups.borland.com...
>
> "Dennis Jones" <nospam@nospam.com> wrote in message
> news:43a843e2@newsgroups.borland.com...
>
> > while (pAdapter)
> > {
> > AnsiString AdapterAddress =
> > pAdapter->IpAddressList.IpAddress.String;
> > }
>
> You have an endless loop there. You forgot to change pAdapter on each
> iteration.
Oops, I copy/pasted from existing code and left out the Next() call.
> Also, you are only retrieving 1 address from each adapter, but
> there is potentially multiple addresses available.
Multiple addresses per adapter? I was not aware of such a beast. Are there
"dual-head" NIC's out there nowadays?
- Dennis
Technical Details
Message-ID:
<43a86515$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43a832cb$1@newsgroups.borland.com> <43a843e2@newsgroups.borland.com> <43a84c2d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,744a3315ee7b00aa X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43a832cb$1@newsgroups.borland.com> <43a843e2@newsgroups.borland.com> <43a84c2d$1@newsgroups.borland.com> Subject: Re: all IP adresses of the local system Date: Tue, 20 Dec 2005 12:11:28 -0800 Lines: 28 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: 204.200.27.7 Message-ID: <43a86515$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135109397 204.200.27.7 (20 Dec 2005 12:09:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail