# Managing multiple projects under Visual Studio

This topic is 4677 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Greets guys, I was just wondering if anyone had any experience with working with more than one project using Microsoft Visual Studio (v. 2003+), and could offer any advice about what pitfalls to look out for and the like. At the moment, I've been developing some utility classes for my game in the form of an SDK. Because some are templated, a static library is unfortunately not an option. Such classes include: Window, Vector, PackFile, Texture etc. I'd really like to keep the classes completely separate from my game classes (the game can use the SDK classes, but not vice versa).. Could setting up a new project to manage my SDK files be the answer? Is that its purpose? What I'm doing now is simply placing files in their respective folders on disk, but come time to start a new game project, I'd have to copy the SDK folder to the new game's folder, which seems a little akward to me. Folder structure:
-P02
P04.ncb
P04.sln
P04.vcproj

+Debug

-Source
-GAME
Main.cpp

-SDK
Window.cpp
Window.h
Vector.inl
Vector.h


##### Share on other sites
Two changes I would make:
1. Get rid of the Source folder and put GAME and SDK directly in the P04 folder.
2. Move the P04.vcproj to the GAME folder. The SDK.vcproj will go in the SDK folder
Your files will look like this:
    P04        P04.sln        GAME            GAME.vcproj            GAME files        SDK            SDK.vcproj            SDK files

You might also do it like this (this is what Visual Studio prefers):
    P04        P04.sln        P04.vcproj        main.cpp        SDK            SDK.vcproj            SDK files
For projects that are shared by other solutions, this is how I do it:
    P04        P04.sln        P04.vcproj        main.cpp    Libraries        SDK            SDK.vcproj            SDK files

##### Share on other sites
Excellent! Thanks for your opinion :)

r++

1. 1
Rutin
29
2. 2
3. 3
4. 4
5. 5

• 13
• 13
• 11
• 10
• 13
• ### Forum Statistics

• Total Topics
632959
• Total Posts
3009461
• ### Who's Online (See full list)

There are no registered users currently online

×