Delphi project relative path problem

xiaoxiao2021-03-06  108

You have written a program, how to copy the source code to different directories of other machines, whether the program cannot compile, then it is very likely that the path has a problem, how to use the relative path in the project setting, then more convenient The project management is more relaxed, and it is.

In the Project-> Option-> Directories / Conditionals page, you can specify a directory

(1) Do not use the absolute path, so no matter the program movement or release, there will be no need to re-modify the path.

(2) Based on the current engineering document (* .dpk (component package), *. DPR (EXE project), etc.

(3) "." Means a reference directory, such as ./Source, represents the subdirectory Source in the reference directory.

(4) ".." indicates the parent directory of the reference directory, such as ../debug, represents the subdirectory DEBUG under the parent directory of the reference directory, which is the brothers of the reference directory.

(5) "" ../../ 5 parent directory, according to this class ...

转载请注明原文地址:https://www.9cbs.com/read-98784.html

New Post(0)