Skip to content

Commit b549671

Browse files
authored
Merge pull request MicrosoftDocs#1867 from mikeblome/mb-dll-walkthrough
added qualifications for relative path
2 parents 6fc488a + dee62e0 commit b549671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,12 @@ Next, to call the MathLibrary functions in your source code, your project must i
288288

289289
1. Double-click in the top pane of the **Additional Include Directories** dialog box to enable an edit control.
290290

291-
1. In the edit control, specify the path to the location of the **MathLibrary.h** header file. In this case, you can use a relative path:
291+
1. In the edit control, specify the path to the location of the **MathLibrary.h** header file. In this case, you can use a relative path from the folder that contains your .cpp files in the client project to the folder that contains the .h file in the DLL project. If your client project is in a separate solution in the same folder as the DLL solution, the relative path should look like this:
292292

293293
`..\..\MathLibrary\MathLibrary`
294294

295+
If your DLL and client projects are in the same solution, or the solutions are in different folders, then you must adjust the relative path accordingly.
296+
295297
![Add the header location to the Additional Include Directories property](media/mathclient-additional-include-directories.png "Add the header location to the Additional Include Directories property")
296298

297299
1. Once you've entered the path to the header file in the **Additional Include Directories** dialog box, choose the **OK** button to go back to the **Property Pages** dialog box, and then choose the **OK** button to save your changes.

0 commit comments

Comments
 (0)