Advertisement

02.20.2008 at 07:49AM PST, ID: 23177929
[x]
Attachment Details

Visual Studio multiple projects in C++

Asked by mattososky in Visual Studio 2008, Microsoft Visual C++.Net

Tags: C++ Visual Studio

I want to develop a lib, or dll in one project (CHILD), the create another project (PARENT) which will use the output of CHILD.

I setup a project which produces a dll, the create the PARENT project and add the existing CHILD project to the PARENT solution. If I place an #include statement in the PARENT project like this:

#include "CHILD.h"

the compiler says it cannot find the file. Doesnt Visual Studio assume that I want to use my CHILD project's header and source files in the project I just brought it into?

How do I keep two separate Visual Studio projects, but have a solution will contains they both, and will use all the header and source files when compiling without explicitly adding the other project's directory to the 'include headers directory'?

Thanks,
MattStart Free Trial
[+][-]02.20.2008 at 08:18AM PST, ID: 20939176

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, Microsoft Visual C++.Net
Tags: C++ Visual Studio
Sign Up Now!
Solution Provided By: AndyAinscow
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.20.2008 at 08:21AM PST, ID: 20939217

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 08:32AM PST, ID: 20939339

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 08:48AM PST, ID: 20939547

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 12:02PM PST, ID: 20941276

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 02:27PM PST, ID: 20942725

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 11:13PM PST, ID: 20945636

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628