IdSocketHandle.hpp do not compile due to OraConsts.hpp #define DefaultPort u"1521"

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Morelli
Posts: 15
Joined: Thu 19 Mar 2015 15:45

IdSocketHandle.hpp do not compile due to OraConsts.hpp #define DefaultPort u"1521"

Post by Morelli » Tue 12 Apr 2016 12:14

Hi Folks,
we use C++ Builder 10 Seattle and we updated ODAC from Version 9.5.18 to 9.6.22.
You have added new defines in the OraConsts.hpp file including the define of DefaultPort:

Code: Select all

#define DefaultHost L"localhost"
#define DefaultPort L"1521"
#define DefaultSID L"orcl"
Because of this new define of yours - the files: IdSocketHandle.hpp, IdIOHandlerSocket.hpp and IdCustomTCPServer.hpp (Src: C:\Program Files (x86)\Embarcadero\Studio\17.0\include\windows\rtl) do no more compile successfully!!! The LOC of IdSocketHandle.hpp:

Code: Select all

	__property System::Word DefaultPort = {read=FDefaultPort, write=FDefaultPort, nodefault};

does no more compile because of the OraConsts.hpp define of DefaultPort.

In our Project we have to include both INDY (IdSocketHandle.hpp ect...) and ODAC!

How can we handle this conflict? Is there going to be a new patch of ODAC? How can we fix this Problem?
Thanks for your help!

Kind regards
Michael Morelli

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: IdSocketHandle.hpp do not compile due to OraConsts.hpp #define DefaultPort u"1521"

Post by AlexP » Tue 12 Apr 2016 12:39

hello,

We have already fixed the problem. The fix will be included in the next version.

Morelli
Posts: 15
Joined: Thu 19 Mar 2015 15:45

Re: IdSocketHandle.hpp do not compile due to OraConsts.hpp #define DefaultPort u"1521"

Post by Morelli » Tue 12 Apr 2016 13:12

Hi,

ok perfect, when is it going to be released?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: IdSocketHandle.hpp do not compile due to OraConsts.hpp #define DefaultPort u"1521"

Post by AlexP » Wed 13 Apr 2016 06:11

We plan to release the new build this month.

Post Reply