I'm trying to use Synapse Release #39 with BCB2007, and have hit a problem
due to IPV6 enhancements.
In synaip.pas, the following
function StrToIp6(value: string): TIp6Bytes;
... creates this in the .hpp file...
typedef Byte TIp6Bytes[16];
...
extern PACKAGE TIp6Bytes __fastcall StrToIp6(AnsiString value);
...which fails to compile:
[C++ Error] Synaip.hpp(36): E2091 Functions cannot return arrays or
functions
Full parser context
snmpdevice.cpp(15): #include ..\..\Components\synapse\lib\snmpsend.hpp
snmpsend.hpp(19): #include ..\..\Components\synapse\lib\Blcksock.hpp
Blcksock.hpp(23): #include ..\..\Components\synapse\lib\Synaip.hpp
Synaip.hpp(23): namespace Synaip
This is a C++ limititation, really. The only ways round this that I can see
are to either change StrToIp6 to accept a VAR parameter which is used for
the return value, or to make TIp6Bytes be a record containing the array of
bytes.
Any other ideas?
- Roddy
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public