Visual c++:one project by solution or several?

Hi,

I am using visual c++ 2008 and i would like to know if the choice/method is to have a project by solution or to have all similar projects in only one solution.

Thanks in advance for your help,

MoonDragon
You normally have a number of related projects in a solution. I would only have a single project in a solution at the very beginning.

As work we have a solution for the project (in the work sense: a project to develop an application, etc) which contains a project (in the Visual Studio sense) for the main app, various projects for DLLs and static libs, plus the unit tests, tools, etc. The project dependencies are set up so the DLLs and libs build before the app, and the DLLs and libs build in the right order, so the build of the solution works.

A more trivial case would be a set of independent small tools. I have a "Utils" solution which contains various small tools (grouped by category using solution folders).

We also have a "prototype" solution which contains random stuff in it (for small scale prototypes, of algroithms and the like, before moving the code to main solution).
Last edited on
What do you use for the unit tests ( they contain a "main" equally...)?

Some unit tests are custom, others based on CppUnit.
http://sourceforge.net/apps/mediawiki/cppunit/index.php?title=Main_Page

And they are mostly console apps, which have a main, but some have a WinMain, it the tests case requires an HWND.

Last edited on
Topic archived. No new replies allowed.