Skip to content

Commit 19b2ebb

Browse files
author
Colin Robertson
authored
Modify for the general case.
1 parent c852f5b commit 19b2ebb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,7 @@ To fix this issue, you could copy the library file directly into your client app
525525

526526
`..\..\MathLibrary\$(IntDir)`
527527

528-
If your DLL and client projects are in the same solution, the relative path should look like this:
529-
530-
`..\$(IntDir)`
528+
If your DLL and client projects are in other locations, adjust the relative path to match.
531529

532530
![Add the library directory](media/mathclient-additional-library-directories.png "Add the library directory")
533531

@@ -551,9 +549,7 @@ One way to avoid this issue is to copy the DLL to the directory that contains yo
551549

552550
`xcopy /y /d "..\..\MathLibrary\$(IntDir)MathLibrary.dll" "$(OutDir)"`
553551

554-
If your DLL and client projects are in the same solution directory, then enter this command:
555-
556-
`xcopy /y /d "..\MathLibrary\$(IntDir)MathLibrary.dll" "$(OutDir)"`
552+
If your DLL and client projects are in other directories, change the relative path to the DLL to match.
557553

558554
![Add the post-build command](media/mathclient-post-build-command-line.png "Add the post-build command")
559555

0 commit comments

Comments
 (0)