| View previous topic :: View next topic |
| Author |
Message |
Andreas Hausladen Guest
|
Posted: Tue Jan 17, 2006 7:53 am Post subject: Re: what's condition compile in CBuilder2006 |
|
|
June Shi wrote:
| Quote: | {$IFDEF VER145} //c++ builder6.0
what's in CBuilder2006?
|
For Delphi code it's
{$IFDEF VER180}
and for C++ Code it is
#if (__BORLANDC__ == 0x580) || (__BORLANDC__ == 0x581 /*Update 1*/)
An alternative for Delphi 6 to 2006 is:
{$IF CompilerVersion = 18.0 }
....
{$IFEND}
--
Regards,
Andreas Hausladen
|
|
| Back to top |
|
 |
June Shi Guest
|
Posted: Tue Jan 17, 2006 8:40 am Post subject: what's condition compile in CBuilder2006 |
|
|
Hi everyone,
i want to know the condition in CBuilder2006.
just like:
{$IFDEF VER145} //c++ builder6.0
what's in CBuilder2006?
Sincerely,
June Shi
|
|
| Back to top |
|
 |
June Shi Guest
|
Posted: Thu Jan 19, 2006 6:11 am Post subject: Re: what's condition compile in CBuilder2006 |
|
|
How to write in delphi? i only set condition in pascal code.
"Andreas Hausladen" <AndreasDOTHausladen (AT) gObviousToBeRemovedmx (DOT) de>
??????:43ccb095$1 (AT) newsgroups (DOT) borland.com...
| Quote: | June Shi wrote:
{$IFDEF VER145} //c++ builder6.0
what's in CBuilder2006?
For Delphi code it's
{$IFDEF VER180}
and for C++ Code it is
#if (__BORLANDC__ == 0x580) || (__BORLANDC__ == 0x581 /*Update 1*/)
An alternative for Delphi 6 to 2006 is:
{$IF CompilerVersion = 18.0 }
...
{$IFEND}
--
Regards,
Andreas Hausladen
|
|
|
| Back to top |
|
 |
Andreas Hausladen Guest
|
Posted: Thu Jan 19, 2006 9:43 am Post subject: Re: what's condition compile in CBuilder2006 |
|
|
June Shi wrote:
| Quote: | How to write in delphi? i only set condition in pascal code.
|
A pascal file is always compiled by the Delphi compiler. So you can use
{$IFDEF VER180}. Delphi and C++ Builder use the same Delphi compiler.
--
Regards,
Andreas Hausladen
|
|
| Back to top |
|
 |
|