Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Can't compile edbutilcompsdesign.dpk
Sun, Dec 16 2012 4:15 PMPermanent Link

Barry

I am trying to compile/build edbutilcompsdesign.dpk using XE2 (Unicode) but I get a compiler error:

[DCC Error] edbutilcomps.pas(1892): E2010 Incompatible types: 'PAnsiChar' and 'PWideChar'
[DCC Error] edbutilcomps.pas(1894): E2010 Incompatible types: 'PAnsiChar' and 'PWideChar'

     lpFile:=pEDBChar(FileName);                        //First error
     lpParameters:=nil;
     lpDirectory:=pEDBChar(DefaultDirectory);      //Second error


lpFile and lpDirectory are defined in Winapi.ShellAPI as PAnsiChar;

I'm not sure where pEDBChar is defined. I don't have the EDB source code for the server.
Any suggestions?

TIA

Barry
EDB V2.11 B2
Mon, Dec 17 2012 5:01 AMPermanent Link

Uli Becker

Barry,

posted earlier by Tim:

<< When compiling the extra utils into a package with the edbutilcomps.pas
found in the UNICODE version I get the following errors: >>

You need to make sure that you compile the package with this directive:

EDB_UNICODE

That is the universal directive used in ElevateDB to tell a unit that you
are using the Unicode version.

Regards Uli
Tue, Dec 18 2012 8:04 PMPermanent Link

Barry

Uli,
>You need to make sure that you compile the package with this directive:
EDB_UNICODE
That is the universal directive used in ElevateDB to tell a unit that you
are using the Unicode version.<

Thanks, that worked. I thought this would be mentioned in an .inc file or at the top of the .PAS file, but it wasn't. Where would I look in the EDB documentation to find "EDB_Unicode" and other conditional variable?

Barry
Wed, Dec 19 2012 2:33 AMPermanent Link

Uli Becker

Barry,

> Where would I look in the EDB documentation to find "EDB_Unicode" and other conditional variable?

I have no idea. Maybe it's not documented at all. I searched the
pdf-files and couldn't find anything containing "EDB_Unicode".

Uli
Wed, Jan 2 2013 6:01 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Barry,

<< Thanks, that worked. I thought this would be mentioned in an .inc file or
at the top of the .PAS file, but it wasn't. Where would I look in the EDB
documentation to find "EDB_Unicode" and other conditional variable? >>

It's not really mentioned anywhere - we only have a few customers that
re-compile the EDB design-time/utils code  so it hasn't been a high priority
in terms of documentation.

I'll see about adding a mention in the manual.

Tim Young
Elevate Software
www.elevatesoft.com


Image