Visual Studio 2008 New Project Problem

Hello to all of you, i know this similiar problem have been answers but i not comfortable with the solution.

As you all know, we need to copy and rename the exciting project in order to create a new project in the same directory.

This is really not convenient because i would like to explicit include the folder rather than using relative path.

Besides that, this project i creating is a Qt projct in Visual Studio.

I need an approach to import all source code and header to a project.

I know how to include additional directory and linker settings but the problem is troublesome to include folder by folder in each project and dll need to put together in same directory with the exe.

I think out to create a project to include all the necessary source file and header file then include this project to another our new project.

This is insane because when ever i need to start a new project, i need to include bunch of header and source file.

Any solution ?

Please help.

Thanks.

fyi the vcproj file is just an xml file that’s very easy to read or even hack – you can edit it in a text editor by hand / copy past lists of files, etc, even you could script the creation of that project file.

If you do it from within visual studio, you’ll have to add files, add include paths, organize the src, etc.

I hope that helps –

good luck !
zach

I not understand what you saying here.
English is not my primary languages.

  
  
<?xml version="1.0" encoding="Windows-1252"?>  
<VisualStudioUserFile  
	ProjectType="Visual C++"  
	Version="8.00"  
	ShowAllFiles="false"  
	>  
	<Configurations>  
		<Configuration  
			Name="Release|Win32"  
			>  
			<DebugSettings  
				Command="$(TargetPath)"  
				WorkingDirectory=""  
				CommandArguments=""  
				Attach="false"  
				DebuggerType="3"  
				Remote="1"  
				RemoteMachine="HOME-C5CCA7A162"  
				RemoteCommand=""  
				HttpUrl=""  
				PDBPath=""  
				SQLDebugging=""  
				Environment="PATH=$(QTDIR)\bin;$(PATH)"  
				EnvironmentMerge="true"  
				DebuggerFlavor=""  
				MPIRunCommand=""  
				MPIRunArguments=""  
				MPIRunWorkingDirectory=""  
				ApplicationCommand=""  
				ApplicationArguments=""  
				ShimCommand=""  
				MPIAcceptMode=""  
				MPIAcceptFilter=""  
			/>  
		</Configuration>  
		<Configuration  
			Name="Debug|Win32"  
			>  
			<DebugSettings  
				Command="$(TargetPath)"  
				WorkingDirectory=""  
				CommandArguments=""  
				Attach="false"  
				DebuggerType="3"  
				Remote="1"  
				RemoteMachine="HOME-C5CCA7A162"  
				RemoteCommand=""  
				HttpUrl=""  
				PDBPath=""  
				SQLDebugging=""  
				Environment="PATH=$(QTDIR)\bin;$(PATH)"  
				EnvironmentMerge="true"  
				DebuggerFlavor=""  
				MPIRunCommand=""  
				MPIRunArguments=""  
				MPIRunWorkingDirectory=""  
				ApplicationCommand=""  
				ApplicationArguments=""  
				ShimCommand=""  
				MPIAcceptMode=""  
				MPIAcceptFilter=""  
			/>  
		</Configuration>  
	</Configurations>  
</VisualStudioUserFile>  
  
  

Are you mean that i need to edit this xml file to include the file or library ?

I did the research found that vcproj is just a make file similiar to Linux make.

Therefore, i just need to have XML tag that include directory and specify the Additional dependencies. After that, i copy and paste to another project.

It is easier to do in VS IDE.

http://www.geocities.com/jdhenckel/generate-vcproj.html

http://www.geocities.com/jdhenckel/generate-vcproj.html

I not actually need the vcproj script creation.

If yes, how to do that ?
I decide to go for script and edit the xml to include file and library and reuse them in several project.

Please guide me how to do that about the XML tag ?

As you all know, this is very troublesome to place our source code in app directory since some time i need port to another pc.

Therefore, a library binary build will be good.

If this is not possible, then i hope there is a solution that create a project that import library once then can reuse in several project.

Thanks.

The file you copy pasted isn’t the good one.

You need to edit the project.vcproj xml file (open it in any xml editor or with file > open (CTRL-O) with visual studio).

You can do it by hand, then copy paste this file or as zach said, make a script that’ll handle that automatically. I think i’m gonna make such an app as i think it might be usefull.

If i find some time and suceed i’ll let you know here.
But i might run out of time this month so be patient or go on your own :slight_smile:

Please help.