🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13166

Retrieving Address info from GetAdaptersInfo

#13166
From: Maurice Anderson
Date: Thu, 23 Oct 2003 06:58
19 lines
1538 bytes
Please help.  Any input would be greatly appreciated.

PIP_ADAPTER_INFO pinfo;
unsigned long len;
AnsiString m_macaddress;

GetAdaptersInfo(pinfo,&len);

  m_macaddress.Format("%02X:%02X:%02X:%02X:%02X:%02X",
                    pinfo->Address[0]);//,pinfo->Address[1],
                                pinfo->Address[2],pinfo->Address[3],
                                       pinfo->Address[4],pinfo->Address[5]);

Using the above code, I get a compiler error that says:
 Type mismatch in parameter 'args'(wanted 'const TVarRec*, got 'unsigned
char')

All I want to do is cast the mac address retrieved like 44:45:53:54:42:00.
How do I do this?
Technical Details
Message-ID: <3f977b4f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,90790ba1c056df66
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-23 00:09:18 PST
From: "Maurice Anderson" <mauriceanderson@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Retrieving Address info from GetAdaptersInfo
Date: Wed, 22 Oct 2003 23:58:37 -0700
Lines: 21
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: 64.30.203.223
Message-ID: <3f977b4f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066892111 64.30.203.223 (22 Oct 2003 23:55:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail