Create a program by copying an existing program

  • Thread starter Thread starter Barry Flynn
  • Start date Start date
B

Barry Flynn

In VS2005, I want to write a program which will have some similarity to an
existing program.
It would be an advantage to start by copying the existing program (into a
new directory, and with new names for the forrms etc.) .

What is the easiets way to do that?

Thanks
 
Barry Flynn said:
In VS2005, I want to write a program which will have some similarity to an
existing program.
It would be an advantage to start by copying the existing program (into a
new directory, and with new names for the forrms etc.) .

What is the easiets way to do that?

Copy the files to a new dir and rename them in visual studio.
 
Barry Flynn said:
In VS2005, I want to write a program which will have some similarity to an
existing program.
It would be an advantage to start by copying the existing program (into a
new directory, and with new names for the forrms etc.) .

What is the easiets way to do that?

Simply create a copy of the solution/project/file in Windows Explorer.
 
Hi Barry,

Do you want to maintain both applications? If so, you should look into
doing pre compile switches, that way you can switch between each application
and build accordingly. I work on several applications that work in the same
way as they share an almost identical interface.

.....

#if BUILDB

'//This code gets compiled when BUILDB is true

#else

'//This code gets compiled when BUILDB is false

#endif

.....

HTH.

Nick.
 
NickP said:
Do you want to maintain both applications? If so, you should look into
doing pre compile switches, that way you can switch between each application
and build accordingly. I work on several applications that work in the same
way as they share an almost identical interface.

....

#if BUILDB

'//This code gets compiled when BUILDB is true

#else

'//This code gets compiled when BUILDB is false

#endif
<snip>

Ouch...

If this generates *different* applications, I suppose it is a
maintainance nightmare... did you ever considered forms visual
inheritance?

Regards,

Branco.
 
Thanks for the various suggestions.

New Program B will be a totaly separate program from existing Program A.
The user interface will be different, but it will have some similarity to
that of Program A.
Likewise, the logic will be different, but will loosely resemble that of
Program A.

All I am trying to do is get a headstart, by "cloning Program A" then
modifying the clone, rather than starting from scratch.

As I see it, Michael's suggestion of "Copy the files to a new dir and rename
them in visual studio." looks like the easiset way of ahieveing what I want.

Thanks.

Barry
 
Barry Flynn said:
Thanks for the various suggestions.

New Program B will be a totaly separate program from existing Program A.
The user interface will be different, but it will have some similarity to
that of Program A.
Likewise, the logic will be different, but will loosely resemble that of
Program A.

All I am trying to do is get a headstart, by "cloning Program A" then
modifying the clone, rather than starting from scratch.

As I see it, Michael's suggestion of "Copy the files to a new dir and
rename them in visual studio." looks like the easiset way of ahieveing
what I want.

Another option is to start a new project and just copy what you need as you
go. This could end up with a cleaner result.

Michael
 
Back
Top