Link to home
Start Free TrialLog in
Avatar of DanRollins
DanRollinsFlag for United States of America

asked on

Clone a Project in VC++

Let's say I have a project with many settings including special libraries to link, customized preprocessor include path, resources, etc.

Now I want to make a new project with similar settings.  What I have been forced to do is start a new project of the same type (console, Win32 Dll, etc.) and then copy the files from the old project, add them to the new project, and painfully recreate the rest of the settings (hoping I don't miss something).

Tip: copying the directory and renaming the dsp file is a waist of thyme.

It seems like there ought to be a better way.  Is there?
Avatar of peterchen092700
peterchen092700

Write a custom app wizard.
never did this, but it's said to be no big deal.

There's even an (standard) appwizard for custom appwizards: Project/New, Custom ApWizard

You can even specify an existing project as starting point.
Trying to dig out some links...
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DanRollins

ASKER

jkr,
Thanks.  That seems to do the trick -- the caveate is to watch out for global search and replace -- since there is likely to be a CPP file or two with the module name embedded in it.

peterchen,
Generating an AppWizard to do it would be a multiple-step process (new AppWizard, build the new AppWizard, use the new AppWizard to create the new app, delete the AppWizard.  

However, in checking this out, I found a lot of really cool stuff!.  I made an aAppWizard for generating Dialog-based testing apps.  I can now create a testing app with just a couple of clicks -- it uses my naming conventions and and gets rid of all of the unneeded stuff.  And I can improve it over time my tweaking the template files.

So, how do I go about dividing the points? (LOL).

peterchen, look for some points here:

https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=mfc&qid=20250112