BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to determine BDS 2006

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Darren Dwyer
Guest





PostPosted: Fri Apr 13, 2007 9:20 pm    Post subject: how to determine BDS 2006 Reply with quote



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





PostPosted: Sun Apr 15, 2007 12:25 am    Post subject: Re: how to determine BDS 2006 Reply with quote



"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





PostPosted: Tue Apr 17, 2007 9:25 pm    Post subject: Re: how to determine BDS 2006 Reply with quote



thank you.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.