Board index » cppbuilder » Different IDE questions

Different IDE questions

Hi,
  > Under Project Options / Packages, it lists all the packages I have
installed.  If this data pertains only to the current project, can I
deselect any packages that are not used in this particular project?  I
thought by doing this, it would cut down the .exe size by not linking
in all the packages listed.

Quote
>  An irritating feature of BCB 3.0 is when I want to bring in a .cpp

file from another project into the current one for cut and paste
operations.   When I do this, it close the current project out before
bringing in the aforementioned .cpp file.
     How can I do this without this happening?   BCB 1.0 did this with
no problems.

Quote
>  I would like to apply a "Header" to all my *.h and *.cpp files.

Something that lists the author, creation date, etc.   Is there any way
to do this within BCB 3.0?   If not, do you guys know of any utilities
that do this?

Thanks,
-Robert

 

Re:Different IDE questions


Quote
Robert Krueger wrote:

> Hi,
>   > Under Project Options / Packages, it lists all the packages I have
> installed.  If this data pertains only to the current project, can I
> deselect any packages that are not used in this particular project?  I
> thought by doing this, it would cut down the .exe size by not linking
> in all the packages listed.

BCB3 uses a smart linker.  It will only link in code or packages that
you use.  All that list really is is a lsit of possible packages that
you can use.  Reducing this list will not affect exe size.  If you have
use packages checked and you remove a package that is being linked in
you will see the exe size increase since that code will have to be
linked into your exe.

Quote
> >  An irritating feature of BCB 3.0 is when I want to bring in a .cpp
> file from another project into the current one for cut and paste
> operations.   When I do this, it close the current project out before
> bringing in the aforementioned .cpp file.
>      How can I do this without this happening?   BCB 1.0 did this with
> no problems.

This doesn't happen for me.  Are you certain you are hitting open file
and not open project?  The open project will show just cpp files as well
as bpr and if you open the cpp file it will do what you are describing.
Make sure you are using open file.

Quote
> >  I would like to apply a "Header" to all my *.h and *.cpp files.
> Something that lists the author, creation date, etc.   Is there any way
> to do this within BCB 3.0?   If not, do you guys know of any utilities
> that do this?

You can use the OpenToolsAPI to write an expert that will add your
header to at least the cpp file.  The header is harder to manipulate
since the concept of header doesn't really exist in ObjectPascal.  I'm
not aware of any tools that would do this for you.

Quote
> Thanks,
> -Robert

Jeff Overcash

Re:Different IDE questions


I think this happens only for .cpp project files, ie. the <ProjName>.cpp file
from another project.  This is an annoying thing about BCB3 IDE that you
can't open such files for viewing without creating a whole new project.  I
found doing this also messes up some configuration settings in the original
project (at least the desktop saving option).
Quote
Jeff Overcash wrote:
> Robert Krueger wrote:

> > >  An irritating feature of BCB 3.0 is when I want to bring in a .cpp
> > file from another project into the current one for cut and paste
> > operations.   When I do this, it close the current project out before
> > bringing in the aforementioned .cpp file.
> >      How can I do this without this happening?   BCB 1.0 did this with
> > no problems.

> This doesn't happen for me.  Are you certain you are hitting open file
> and not open project?  The open project will show just cpp files as well
> as bpr and if you open the cpp file it will do what you are describing.
> Make sure you are using open file.

Re:Different IDE questions


I believe you can open the .cpp file by first selecting "C File" in the
"Files of type:" box in the open file dialog.

John

Quote
Robert Krueger wrote in message <36B4B3AE.B5394...@sprynet.com>...
>Hi,
>  > Under Project Options / Packages, it lists all the packages I have
>installed.  If this data pertains only to the current project, can I
>deselect any packages that are not used in this particular project?  I
>thought by doing this, it would cut down the .exe size by not linking
>in all the packages listed.

>>  An irritating feature of BCB 3.0 is when I want to bring in a .cpp
>file from another project into the current one for cut and paste
>operations.   When I do this, it close the current project out before
>bringing in the aforementioned .cpp file.
>     How can I do this without this happening?   BCB 1.0 did this with
>no problems.

>>  I would like to apply a "Header" to all my *.h and *.cpp files.
>Something that lists the author, creation date, etc.   Is there any way
>to do this within BCB 3.0?   If not, do you guys know of any utilities
>that do this?

>Thanks,
>-Robert

Re:Different IDE questions


I don't know of any tool to insert your header information but a Code
Template is good place to start. That at least will do the bulk of the work
for you. You can design it to just fill in the blanks

---George

Quote
Robert Krueger wrote:
> Hi,
>   > Under Project Options / Packages, it lists all the packages I have
> installed.  If this data pertains only to the current project, can I
> deselect any packages that are not used in this particular project?  I
> thought by doing this, it would cut down the .exe size by not linking
> in all the packages listed.

> >  An irritating feature of BCB 3.0 is when I want to bring in a .cpp
> file from another project into the current one for cut and paste
> operations.   When I do this, it close the current project out before
> bringing in the aforementioned .cpp file.
>      How can I do this without this happening?   BCB 1.0 did this with
> no problems.

> >  I would like to apply a "Header" to all my *.h and *.cpp files.
> Something that lists the author, creation date, etc.   Is there any way
> to do this within BCB 3.0?   If not, do you guys know of any utilities
> that do this?

> Thanks,
> -Robert

Other Threads