Re: Ver180, esp for Raize Components 2.52


2005-12-14 04:36:28 AM
delphi111
Arthur Hoornweg writes:
Quote
Just wondering, where do I find the compiler version number of
Delphi 2006? After searching the help file for an hour I resorted
to starting dcc32.exe manually, it says "borland delphi compiler
18.0". Does this mean I can use the compiler directive
{$ifdef ver180} ?
Here's what I have gone through for Raize Components 2.52 to migrate them
from Delphi 7 to BDS 2006. The new source compiles unchanged in Delphi 7,
Delphi 2005, and Delphi 2006.
Copy Delphi 7 source
copy Rz252D70.dpk, Rz252Dsgn70.dpk, Rz252N70.dpk, and RZ252NDsgn70.dpk to
*100.dpk files. Fix internal names with notepad, also check requires
clauses to fix up names.
Edit RzComps.inc, add near top:
{$IFDEF CONDITIONALEXPRESSIONS} // AKA {$IFDEF VER140}
{$DEFINE D6_OR_HIGHER}
{$IF RTLVERSION>=18}
{$DEFINE D10_OR_HIGHER}
{$IFEND}
{$ENDIF CONDITIONALEXPRESSIONS}
Edit RzDBLook.pas, search for TButtonSet. Make two replacements:
{$IFDEF D10_OR_HIGHER}
FVisibleNavButtons: TNavButtonSet;
{$ELSE}
FVisibleNavButtons: TButtonSet;
{$ENDIF}
{$IFDEF D10_OR_HIGHER}
property VisibleNavButtons: TNavButtonSet
{$ELSE}
property VisibleNavButtons: TButtonSet
{$ENDIF}
Hope that helps.
--
-Brion
There's no such thing as 'one, true way;'
- Mercedes Lackey