 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Randall Parker Guest
|
Posted: Mon Jan 12, 2004 6:50 pm Post subject: How do you manage files shared between 3 or 4 or more progra |
|
|
Here's the situation:
We have about a half dozen programs. Program A and program B share some files.
Programs B and C share some. Then there are additional files that are shared between
A, B, and C. There are still others that are shared between C and D.
It so happens that programs A and B are built with BCB. But C and D are built with
MSVC (and a couple of DLLs built by BCB and still other pieces I'm leaving out for
brevity). A lot of these files contain C++ classes and so are not naturally DLLs when
used by both B and C unless built twice (since BCB and MSVC can't share common C++
DLLs). Some files are not all that big and we'd rather put alot of them into the exes
in order to avoid DLL Hell anyway.
My problem is that I want to know when I am looking at some file which programs use
it. I wonder if I should have directories that are for AB sharing and BC sharing and
ABC sharing and so on to make it easy to know which files are going to require
rebuilds and retests of which applications. I'd like to know that even before I go
make a change so that I'm more aware of which apps might be affected if, say, I
change some interfaces.
I realise tha the best way to handle this sort of situation depends on how m any
programmers are working on the source code, how often apps are released, how
important is is to maintain class interface definitions (which itself can vary from
class to class depending on how much it is used and in how many apps) and so on. I'm
just curious to know how various people here handle this kind of problem in different
situations.
|
|
| Back to top |
|
 |
Simon Elliott Guest
|
Posted: Thu Jan 15, 2004 10:51 am Post subject: Re: How do you manage files shared between 3 or 4 or more pr |
|
|
Randall Parker <STOPtechiepundit (AT) EVILfuturePOXpunditSPAM (DOT) com> writes
[snip]
| Quote: | I realise tha the best way to handle this sort of situation depends on how m any
programmers are working on the source code, how often apps are released, how
important is is to maintain class interface definitions (which itself can vary
from
class to class depending on how much it is used and in how many apps) and so on.
I'm
just curious to know how various people here handle this kind of problem in
different
situations.
|
I usually have an include directory and a library directory:
xyzbloggs root path for project bloggs
xyzbloggsfoo source for foo
xyzbloggsbar source for bar
xyzbloggsinclude include files for project bloggs
xyzbloggslibrary library files for project bloggs
Then all my BCB projects have the appropriate include and library paths
added as relative paths ../include and ../library so that I can move and
copy .bpr files without needing to change project options. I do a
similar thing with my CV++ project options. (If your VC++ and BCB
projects, or projects with different BCB versions, need to access the
library, you'll need to build separate libraries for each.)
What I haven't worked out how to do yet is to share forms between
different BCB projects. (eg if in the above example, foo and bar were
both BCB programs and both wanted to use the same form).
--
Simon Elliott
http://www.ctsn.co.uk/
|
|
| Back to top |
|
 |
Graeme Prentice Guest
|
Posted: Fri Jan 16, 2004 7:39 am Post subject: Re: How do you manage files shared between 3 or 4 or more pr |
|
|
On Thu, 15 Jan 2004 10:51:18 +0000, Simon Elliott wrote:
| Quote: |
What I haven't worked out how to do yet is to share forms between
different BCB projects. (eg if in the above example, foo and bar were
both BCB programs and both wanted to use the same form).
|
The object repository.
Graeme
|
|
| Back to top |
|
 |
Simon Elliott Guest
|
Posted: Fri Jan 16, 2004 8:47 am Post subject: Re: How do you manage files shared between 3 or 4 or more pr |
|
|
Graeme Prentice <invalid (AT) yahoo (DOT) co.nz> writes
| Quote: | What I haven't worked out how to do yet is to share forms between
different BCB projects. (eg if in the above example, foo and bar were
both BCB programs and both wanted to use the same form).
The object repository.
|
Is there any way I can partition this? In my example
xyzbloggs root path for project bloggs
xyzbloggsfoo source for foo
xyzbloggsbar source for bar
xyzbloggsinclude include files for project bloggs
xyzbloggslibrary library files for project bloggs
I would want a form to be shared among all of bloggs, but not visible to
other BCB apps.
--
Simon Elliott
http://www.ctsn.co.uk/
|
|
| Back to top |
|
 |
Roal Zanazzi Guest
|
Posted: Sun Jan 18, 2004 1:29 pm Post subject: Re: How do you manage files shared between 3 or 4 or more pr |
|
|
Simon Elliott wrote:
| Quote: | Graeme Prentice <invalid (AT) yahoo (DOT) co.nz> writes
What I haven't worked out how to do yet is to share forms between
different BCB projects. (eg if in the above example, foo and bar were
both BCB programs and both wanted to use the same form).
Is there any way I can partition this? In my example
xyzbloggs root path for project bloggs
xyzbloggsfoo source for foo
xyzbloggsbar source for bar
xyzbloggsinclude include files for project bloggs
xyzbloggslibrary library files for project bloggs
I would want a form to be shared among all of bloggs, but not visible to
other BCB apps.
What about: |
xyzbloggsshared path for shared sources, forms, etc...
What I usually do is:
// Anything I could share among all projects
// (i.e. utility functions, useful constants, spare components, etc...)
projectsshared
projectssharedinclude
projectssharedlib
// Project1 with sub-projects.
// Subprojects could share sources (that are not shared
// with other projects).
projectsproject1
projectsproject1shared
projectsproject1sharedinclude
projectsproject1sharedlib
projectsproject1subproject1_1
projectsproject1subproject1_2
// Project2 without subprojects
projectsproject2
All paths are relative to project path, eventually even the globally
shared ones (just go down one level under the project path).
Sometimes I reference/use (i.e.) project2 from project1, for example if
project2 is a component package for C++Builder or Delphi. In this case I
don't use the globally shared path... well, I could, anyway :-)
--
Roal Zanazzi
|
|
| Back to top |
|
 |
Simon Elliott Guest
|
Posted: Tue Jan 20, 2004 12:03 pm Post subject: Re: How do you manage files shared between 3 or 4 or more pr |
|
|
Roal Zanazzi <virus (AT) microsoft (DOT) com> writes
| Quote: | I would want a form to be shared among all of bloggs, but not visible to
other BCB apps.
What about:
xyzbloggsshared path for shared sources, forms, etc...
|
Can you put forms in the library, or would you have to share them by
adding them to a project?
--
Simon Elliott
http://www.ctsn.co.uk/
|
|
| Back to top |
|
 |
Roal Zanazzi Guest
|
Posted: Tue Jan 20, 2004 8:33 pm Post subject: Re: How do you manage files shared between 3 or 4 or more pr |
|
|
Simon Elliott wrote:
| Quote: | Roal Zanazzi <virus (AT) microsoft (DOT) com> writes
I would want a form to be shared among all of bloggs, but not visible to
other BCB apps.
What about:
xyzbloggsshared path for shared sources, forms, etc...
Can you put forms in the library, or would you have to share them by
adding them to a project?
That was a lie I don't do much GUI work with C++Builder, I prefer |
Delphi for that, so I really don't share forms between projects.
I think that the best solution to share forms is adding them to the
repository, but to speak frankly, I've rarely used that feature of
Borland IDEs.
Anyway, I know that one can add forms to a package and re-use it (it's a
little more tricky if they are MDI children), or he/she can have forms
inside/used by components.
I think forms can also be shared as any other source files, just adding
them to any project that needs'em.
--
Roal Zanazzi
|
|
| Back to top |
|
 |
|
|
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
|
|