title: How do I use classes from another project in the same solution in Visual Studio 2010?
body: <p>I'm working on a object-oriented Windows API wrapper library, written in C++, and I have two projects inside the solution:</p>
  
  <ul>
  <li>The actual library project;</li>
  <li>A "test" project, where I write code that uses the library for testing purposes.</li>
  </ul>
  
  <p>My goal is to be able to include and use the library header files on the test project, as if it was an actual project that uses the library.</p>
  
  <p>I solved the file inclusion problem by adding "$(SolutionDir)" to the test project's additional include directories (is there a cleaner way?), but I'm struggling to get the test project to link. I get unreferenced externals errors, which I assume is because the linker can't find the DLL.</p>
  
  <p>I'm completely lost here. I have set up project-to-project references, so that the test project is dependent on the library project, but that did not solve the linking problem. I couldn't find any option in either project's properties that seemed to be relevant to my problem.</p>
  
  <p>Is there a way I can simply hit "Build Solution" and then run the executable?</p>