Article View: borland.public.cppbuilder.internet.socket
Article #1275Re: Installing Indy10 on BCB6
From: Frank Burleigh
Date: Mon, 26 Feb 2007 19:05
Date: Mon, 26 Feb 2007 19:05
71 lines
3393 bytes
3393 bytes
Remy Lebeau (TeamB) wrote: > "Frank Burleigh" <burleigh@indiana.edu> wrote in message > news:45e073c0$1@newsgroups.borland.com... > >> But I don't see how it's possible to build a >> program since the generated HPPs declare this type: >> >> TIdIPv6Address = array [0..7] of word; >> >> A number of functions return TIdIPv6Address. > > The only functions/methods that return TIdIPv6Address are the > following: > BytesToIPv6() > IPv6ToIdIPv6Address() > TIdStack.HostToNetwork(TIdIPv6Address) > TIdStack.NetworkToHost(TIdIPv6Address) > TIdBuffer.ExtractToIPv6() With this included: #include <IdSMTP.hpp> compilation of my code produces: [C++ Error] Idglobal.hpp(426): E2091 Functions cannot return arrays or functions [C++ Error] Idglobal.hpp(466): E2091 Functions cannot return arrays or functions [C++ Error] Idstack.hpp(176): E2091 Functions cannot return arrays or functions [C++ Error] Idstack.hpp(183): E2091 Functions cannot return arrays or functions [C++ Error] Idbuffer.hpp(147): E2091 Functions cannot return arrays or functions > The likelihood of most users actually using any of those is minimal. > Besides, none of those are declared to actually use TIdIPv6Address > specifically in C++ anyway. Borland translates them to use Word > pointers instead. I understand. But still, the functions and methods are declared in the HPP files, so C++ is upset. Is there a missing pragma of some sort that would produce the conversion to word pointer? > The only property that returns a TIdIPv6Address is the > TIdIPAddress.IPv6 property, which is ifdef'ed out for C++, since > arrays can't be used for properties. That at least has not been a problem. >> The C++ compiler isn't happy about this type > > Please be more specific. E2091. A function was defined to return an array or a function. Check to see if either the intended return was a pointer to an array or function (and perhaps the * is missing) or if the function definition contained a request for an incorrect datatype. ;-) I could of course operate in the library code. But that wouldn't be the right approach so it's better if I seek your suggestions. > > Gambit Thanks Remy.
Technical Details
Message-ID:
<45e32f56$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns98DF9A0C1E280koenhacom@207.105.83.66> <45ddcf93@newsgroups.borland.com> <Xns98E05DCACB646koenhacom@207.105.83.66> <45e073c0$1@newsgroups.borland.com> <45e0a25c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ef13117f08671e77 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 26 Feb 2007 14:05:51 -0500 From: Frank Burleigh <burleigh@indiana.edu> User-Agent: Thunderbird 2.0pre (Windows/20070226) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Installing Indy10 on BCB6 References: <Xns98DF9A0C1E280koenhacom@207.105.83.66> <45ddcf93@newsgroups.borland.com> <Xns98E05DCACB646koenhacom@207.105.83.66> <45e073c0$1@newsgroups.borland.com> <45e0a25c$1@newsgroups.borland.com> In-Reply-To: <45e0a25c$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 156.56.198.182 Message-ID: <45e32f56$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172516694 156.56.198.182 (26 Feb 2007 11:04:54 -0800) Lines: 71 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail