| View previous topic :: View next topic |
| Author |
Message |
Darren Dwyer Guest
|
Posted: Fri Apr 13, 2007 9:20 pm Post subject: how to determine BDS 2006 |
|
|
How do you determine whether the compiler is BDS 2006?
In previous versions you did the following :-
#if (__BORLANDC__ >= 0x0530) // BCB Version 3 +
class PACKAGE TMyComponent : public TComponent
{
// -------------------------------------------------------------------------
-
#else // BCB Version 1
class TMyComponent : public TComponent
{
#endif
how do you do similar in BDS 2006?
- darren |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sun Apr 15, 2007 12:25 am Post subject: Re: how to determine BDS 2006 |
|
|
"Darren Dwyer" <admin@bcb-tools.com> wrote in message
news:4620ff62$1 (AT) newsgroups (DOT) borland.com...
| Quote: | How do you determine whether the compiler is BDS 2006?
|
The same way you are already doing - by looking at the __BORLANDC__
value. Each compiler version increments that value.
The second hex digit is incremented for each major version release,
ie:
0x530 = BCB 3
0x540 = BCB 4
0x550 = BCB 5
0x560 = BCB 6
0x570 = Kylix
0x580 = BDS 2006
The third hex digit is incremented in patches and service packs.
The easiest way to figure out the __BORLANDC__ value for a particular
release is to run the command-line bcc32.exe executable for that
release. For example, bcc32.exe reporting v5.5.1 (BCB 5 with update
patch, or the free command-line compiler) would be 0x551 in
__BORLANDC__.
Gambit |
|
| Back to top |
|
 |
Darren Dwyer Guest
|
Posted: Tue Apr 17, 2007 9:25 pm Post subject: Re: how to determine BDS 2006 |
|
|
thank you. |
|
| Back to top |
|
 |
|