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 

what's condition compile in CBuilder2006

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Andreas Hausladen
Guest





PostPosted: Tue Jan 17, 2006 7:53 am    Post subject: Re: what's condition compile in CBuilder2006 Reply with quote



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





PostPosted: Tue Jan 17, 2006 8:40 am    Post subject: what's condition compile in CBuilder2006 Reply with quote



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





PostPosted: Thu Jan 19, 2006 6:11 am    Post subject: Re: what's condition compile in CBuilder2006 Reply with quote



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





PostPosted: Thu Jan 19, 2006 9:43 am    Post subject: Re: what's condition compile in CBuilder2006 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) 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.