Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread edbutilcomps won't compile.
Tue, May 7 2013 5:07 AMPermanent Link

Peter

Hi I have just upgraded to ElevateDB-ADD - Version 2.12 Build 2 and ElevateDB VCL-CS-SRC - Version 2.08 Build 3. The elevatedb components install OK and my projects build against them just fine. I am having problems where the elevatedb server does not seem to use the .ini file I have put in the directory with the server and instead creates a new .ini file if the default windows folder.

I went to load the edbutilcomps package so that I could have a look at the server source but it won't compile. The error is [DCC Error] edbutilcomps.pas(11577): E2010 Incompatible types: 'AnsiChar' and 'AnsiString' and originates in the Extract(TempSQL,FStatementTerminator) function. From what I can gather the Extract function expects both parameters to be AnsiString, but the FStatementTerminator is and AnsiChar.

Any suggestions

Thanks
Peter
Tue, May 7 2013 3:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Peter,

<< Hi I have just upgraded to ElevateDB-ADD - Version 2.12 Build 2 and
ElevateDB VCL-CS-SRC - Version 2.08 Build 3. The elevatedb components
install OK and my projects build against them just fine. I am having
problems where the elevatedb server does not seem to use the .ini file I
have put in the directory with the server and instead creates a new .ini
file if the default windows folder. >>

This is a bug and will be fixed in the next build.  The change in 2.09 that
allowed for the .ini file to be used in the same directory as the
edbsrvr.exe wasn't done properly.

<< I went to load the edbutilcomps package so that I could have a look at
the server source but it won't compile. The error is [DCC Error]
edbutilcomps.pas(11577): E2010 Incompatible types: 'AnsiChar' and
'AnsiString' and originates in the Extract(TempSQL,FStatementTerminator)
function. From what I can gather the Extract function expects both
parameters to be AnsiString, but the FStatementTerminator is and AnsiChar.
>>

What compiler are you using to recompile ?  Are you trying to compile with
the ANSI or Unicode version of EDB ?

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 7 2013 5:21 PMPermanent Link

Peter

Hi Tim

<< This is a bug and will be fixed in the next build.  The change in 2.09 that
allowed for the .ini file to be used in the same directory as the
edbsrvr.exe wasn't done properly. >>

Any idea when the next build might be.

<< What compiler are you using to recompile ?  Are you trying to compile with
the ANSI or Unicode version of EDB ? >>

I'm using Delphi XE Enterprise Edition and the ANSI version of the server in "C:\Program Files\ElevateDB 2 VCL-CS-SRC\RAD Studio XE (Delphi)\servers\edbsrvr\source"

I sholud also mention that I had to change edbrun to edb208rsdelphixerun in the edbutilcompsdesign package, I did see the reference to LIBSUFFIX compiler define in the Breaking Changes but I do not understand how to use it. Do I need to set something in my compiler before compiling the edbutilcompsdesign package.

Peter
Wed, May 8 2013 4:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Peter,

<< Any idea when the next build might be. >>

An EDB build is up next after the next EWB release is out, which should be
by Monday.

<< What compiler are you using to recompile ?  Are you trying to compile
with the ANSI or Unicode version of EDB ? >>

I'm using Delphi XE Enterprise Edition and the ANSI version of the server in
"C:\Program Files\ElevateDB 2 VCL-CS-SRC\RAD Studio XE
(Delphi)\servers\edbsrvr\source" >>

That should work fine as-is.  Most likely you're running into an issue with
trying to use 2.08 with the 2.12 utility components source code, as it may
have changed since 2.08.

<< I sholud also mention that I had to change edbrun to edb208rsdelphixerun
in the edbutilcompsdesign package, I did see the reference to LIBSUFFIX
compiler define in the Breaking Changes but I do not understand how to use
it. >>

The package naming change was done in 2.11, so you won't be able to do that
with 2.08.

For 2.11 or higher, you set the LIBSUFFIX directive in the package, like
this:

package edbutilcompsdesign;

{$R *.res}
{$ALIGN 8}
{$ASSERTIONS OFF}
{$BOOLEVAL OFF}
{$DEBUGINFO OFF}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS OFF}
{$LOCALSYMBOLS OFF}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION ON}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO OFF}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST ON}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DESCRIPTION 'ElevateDB Utility Components Package'}
{$DESIGNONLY}
{$IMPLICITBUILD OFF}
{$LIBSUFFIX '212rsdelphixe'}  <<<<<<<<<<<<<<<<<<<<<<

requires
 designide,
 dbrtl,
 vcldb,
 edbrun;

contains
 edbutilcomps in 'edbutilcomps.pas';

end.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image