473,804 Members | 3,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a program by copying an existing program

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
Complete Solutions DG

Mar 26 '07 #1
6 1169
"Barry Flynn" <Anonymousewrot e in message
news:Ou******** ******@TK2MSFTN GP03.phx.gbl...
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.
>
Thanks

--
Barry Flynn
Complete Solutions DG

Mar 26 '07 #2
"Barry Flynn" <Anonymouseschr ieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 26 '07 #3
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.

"Barry Flynn" <Anonymousewrot e in message
news:Ou******** ******@TK2MSFTN GP03.phx.gbl...
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
Complete Solutions DG

Mar 26 '07 #4
NickP wrote:
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.

Mar 26 '07 #5
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
Complete Solutions DG
"Barry Flynn" <Anonymousewrot e in message
news:Ou******** ******@TK2MSFTN GP03.phx.gbl...
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
Complete Solutions DG

Mar 26 '07 #6
"Barry Flynn" <Anonymousewrot e in message
news:%2******** *********@TK2MS FTNGP02.phx.gbl ...
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
Mar 27 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6582
by: dev | last post by:
how create a temp table as a copy of a existing table and then update1 field and insert the hole temp table back in the existing table? please any help? if i have 10 fields in 1 record and about 100 records and a field.status=1 in a existing_table and i want to create a temp_table with all the recordse and values of the existing_table and then update the field.status to 2 and insert in 1 query the temp_table in the existing_table
1
4032
by: dominic | last post by:
Hi all, I'm trying to create a temp file by copying from an existing file, perform some operation on the temp file, and then delete it. The code I used is as follow: // First, to copy the source file to a temp file File sourceFile = new File("c:\\source.dat"); File destFile = new File("c:\\destination.dat");
7
8876
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
4
1911
by: silverburgh.meryl | last post by:
Hi, I would like to create a Class which has a list of another class as it attribute. I wonder, should I do this: class B { private: vector<A> _listOfA; }
18
7396
by: Sandra-24 | last post by:
Can you create an instance of a subclass using an existing instance of the base class? Such things would be impossible in some languages or very difficult in others. I wonder if this can be done in python, without copying the base class instance, which in my case is a very expensive object. Any ideas? Thanks,
4
12454
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
3
2415
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull down all the files and create a local project from it? I know things like DreamWeaver will do this ... and I have been poking around VS 2005 and haven't seen anything that jumps out at me.
15
7832
by: Killer42 | last post by:
Hi all. Ok, I'm using VB6 but I think the answer to this (if there is one) is more likely to be found in the Access forum. I have a situation where I've got tens of millions of records, spread over a bunch of separate databases. I don't have a choice about this, as the data is simply too large for a single MDB. As yet, I'm not prepared to go to SQL Server. Possibly in the not-too-distant future, but we'll see. In the meantime, I have this...
4
2282
by: ARC | last post by:
Hello all, I'm trying to help a customer of mine recover data from an access 2000 program that appears to have corruption. Opening the file will open the default / startup form, however, you can't get into the one module that is present. They have the module named: Global Module. Double-clicking this gives the error: "The module name 'Global Module' is misspelled or refers to a module that doesn't exist." I ran a repair, and this did...
0
9707
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.