• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Visual C++ 2010 Express

mgh

Messages
1,413
Country
unitedkingdom
Does anyone know a way to save and rename a complete Visual C++ 2010 Express solution automatically? The only way I've found is to copy and rename all the individual files and then manually edit the .sln, .vcxproj, and .vcxproj.filters files to change file names there.

I've tried the free VSP Renamer but that fails on my Win7 PC - it reports that it can't find an existing directory!

I ask because the SDKs include various examples that form useful starting points for new applications. My trusty 10+ year-old Borland C++ Builder has a File|Save Project As... menu item that does this. Unfortunately it no longer works with some of these latest Microsoft SDKs
 
So you want to change the name of the solution? Or make a copy of it under another name?
 
I want to make a copy of the solution and all its files.

For example in folder C:\Users\Gerry\Documents\DirectX 11\DX11 Demo I have the following files.

Crate.dds
directx.ico
DX11 Demo.cpp
DX11 Demo.exe
DX11 Demo.fx
DX11 Demo.jpg
DX11 Demo.rc
DX11 Demo.sdf
DX11 Demo.sln
DX11 Demo.vcxproj
DX11 Demo.vcxproj.filters
DX11 Demo.vcxproj.user
MyIcon.ico
Resource.h


I can copy them to a new folder with no problem but I also want to change their names from DX11 Demo to something else.
 
StackOverflow might be your friend:

http://stackoverflow.com/questions/...ame-solution-and-directories-in-visual-studio

I also did a Google using 'VS2010 express rename solution' that came up with a number of hits. I guess it is an individual choice but I would not rename files etc if I created another copy of the solution.

The other way is to use a Source Control system like Mercurial which allows multiple branches of a solution in a single folder set. That is how I keep different versions of ADE apart. However this is a pretty heavyweight way of doing things if you just want to get a separate solution based on the original
 
Thanks, but I've been to StackOverflow which led be to the Visual Studio Project Renamer which won't even run on my PC.

I guess it's easier to do it manually, now I've found out how.
 
You should be able to rename things from the Solution explorer by right clicking on them and selecting rename.
 
You should be able to rename things from the Solution explorer by right clicking on them and selecting rename.

That doesn't change the names embedded in the sln, .vcxproj, and .vcxproj.filters files . Anyway, I can do that in Windows Explorer.
 
It should. The other thing you have to do is go through all your #includes and make sure they are named correctly.
 
I guess I am still trying to understand why you would want to rename all the code and other files. If the solution is renamed to a new folder then there is no conflict between the old and new files.
 
I guess I am still trying to understand why you would want to rename all the code and other files. If the solution is renamed to a new folder then there is no conflict between the old and new files.

Because, for example, I don't want all my files called a mixture of SimpleSample and SimpleSample-2010. I'd prefer to use my own meaningful names, given that I want to develop more than one application based on the same sample.
 
Because, for example, I don't want all my files called a mixture of SimpleSample and SimpleSample-2010. I'd prefer to use my own meaningful names, given that I want to develop more than one application based on the same sample.

Fair enough :)
 
Back
Top