Re: Added Project stays as a reference???
Robby <Robby@discussions.microsoft.com> wrote:
Yeah, so, as a programmer, then, if I have a project where my solution
explorer has a folder that contains say 5 .cpp source files and where
I would like to preserve these .cpp files as a start off point of any
new project, then that means I would have to create all 5 .cpp files
manually every time I create a new project?
Yes, you would need to make copies of the source files.
Isn't there a way to copy all source files from one project to another
without the pasted files keeping their reference to the innitial
project?
Pasted files don't keep reference to initial project - initial project,
as well as the target project, keeps reference to the source files. A
project is really not much more than a list of source files.
I mean.... I may have 30 source files with all kinds of defines and
commenting sections which would define my personal programming
standard. Wouldn't it be nice to just copy these files to a new
project and continue from there... without having the worry of
modifying the original project files!
You can copy the whole directory in Explorer, can't you? Source files
and all.
You can create your own project Wizard. In the simplest case it may just
set up a new project as a copy of a set of template files. Fancy wizards
can also generate code on the fly based on input provided by the user.
See
http://msdn2.microsoft.com/en-US/library/96xz4cw2.aspx
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925