I have build a C++ class that accepts a file path and file pattern from the user and searches for the file pattern in the provided location. Ex: C:\MyProject *.cpp lists all the .cp files in the given location.
I am able to build and compile the project successfully. Now I want to have a different Project called Executive which just contains a main() and does the same thing as the C++ class mentioned above.
Right now the structure looks like:
VS2010 Solution - Navigator -Headers f1.h f2.h f3.h -Source f1.cpp f2.cpp f3.cpp Lets say I want to have another project under the same solution and called Main/Executive whose main purpose is to have a main function that does the same thing as the main in navigator project.
My question is that the Executive project under the same solution has main.cpp and probably will also need the copies of all the *.h files of the navigator project. Do I also need to copy the *.cpp file of navigator to the Executive project for main to work? Or should I just have main in Executive project and add hte Navigator project as a reference to the executive project?