DLL file directory configuration independently of each other for different projects VS

VS program uses third-party library, you need to include a directory, library catalog, the Additional Dependencies DLL files and directory configuration. Sometimes may different projects require different versions of the same library, the library will have to attribute configured for each individual project.
The directory that contains the library catalog, the Additional Dependencies and other three by the new project property sheet to configure, but the DLL into the path environment variable, then is for all projects, it is difficult to distinguish. You can use the property sheet to configure the debug page:

method one
Path = DLL file contains the file path to the folder.

Method Two
Working directory to locate the folder where the DLL file.

PS:
"Working directory" attribute role is to run the program exe uniquely identify the default directory, the directory identified only after that is working. If the DLL file is located in the working directory folder, run the program, go to the working directory to find the required DLL files.
Set VS in the working directory is for debugging purposes, that is, after you start commissioning, start a new process, automatically working directory of the new process is set to VS project properties in the working directory, and then a new process is started corresponding exe program. But if you do not use the VS debugger starts exe, but directly double-click the exe file to start a new process, it will automatically get the job directory of this new process is set to the directory where the exe file, which is VS and start debugging different places. So if things are not released when in the working directory copying within the directory where the exe will run error, because the working directory is no longer the VS set up, but the directory exe files are located. Finally, talk about, the default value VS VC ++ project engineering working directory is empty, it represents the default is the directory where the VS project that is .vcproj file directory.

The results are as follows:

Guess you like

Origin www.cnblogs.com/zcmacbeth/p/11204079.html