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 

#include "PATH"

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





PostPosted: Fri Jul 08, 2005 4:38 pm    Post subject: #include "PATH" Reply with quote



Hi,

I always added my header paths manually (with no IDE help):

#include "file.h" // same folder
#include "..\file.h" // level -
#include "folder\file.h" // level +

But then I noticed that, when I add those paths from IDE (File/ Include Unit
header)
they alwas add them in the 'same folder', and the app compiles without
problems...

Does that mean that I was wrong because of bothering about right path?





--
Best regards,
Vladimir Stefanovic


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jul 08, 2005 5:44 pm    Post subject: Re: #include "PATH" Reply with quote




"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote


Quote:
But then I noticed that, when I add those paths from IDE (File/
Include Unit header) they alwas add them in the 'same folder',
and the app compiles without problems...

That is because the IDE automatically inserts the appropriate paths into the
"Includes" directories list of the project, which you can view in the
"Directories/Conditionals" section of the Project Options dialog.

Quote:
Does that mean that I was wrong because of bothering about right path?

No.


Gambit



Back to top
Vladimir Stefanovic
Guest





PostPosted: Fri Jul 08, 2005 7:05 pm    Post subject: Re: #include "PATH" Reply with quote



Thank you...

How do you include paths, the IDE way or 'relative path' way?


--
Best regards,
Vladimir Stefanovic
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote in message
news:42ceac0b$1 (AT) newsgroups (DOT) borland.com...

But then I noticed that, when I add those paths from IDE (File/
Include Unit header) they alwas add them in the 'same folder',
and the app compiles without problems...

That is because the IDE automatically inserts the appropriate paths into
the
"Includes" directories list of the project, which you can view in the
"Directories/Conditionals" section of the Project Options dialog.

Does that mean that I was wrong because of bothering about right path?

No.


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jul 08, 2005 9:23 pm    Post subject: Re: #include "PATH" Reply with quote


"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote


Quote:
How do you include paths, the IDE way or 'relative path' way?

Both. I mix them. There are adantages and disadvantages to both ways. The
"IDE way" products cleaner code, but requires project settings to be
configured. The "relative path" way requires less project changes, but then
requires more rigid folder structures on the hard drive, which becomes more
important if you are sharing the project with other people.


Gambit



Back to top
Vladimir Stefanovic
Guest





PostPosted: Sat Jul 09, 2005 4:17 am    Post subject: Re: #include "PATH" Reply with quote

Thank you.

--
Best regards,
Vladimir Stefanovic

Quote:
How do you include paths, the IDE way or 'relative path' way?

Both. I mix them. There are adantages and disadvantages to both ways.
The
"IDE way" products cleaner code, but requires project settings to be
configured. The "relative path" way requires less project changes, but
then
requires more rigid folder structures on the hard drive, which becomes
more
important if you are sharing the project with other people.


Gambit





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.