Forum > General

Absolute file path in {$include %file%}

<< < (6/6)


--- Quote from: MarkMLl on October 06, 2022, 04:33:52 pm ---... worth having.

--- End quote ---
I think that recompiling application mentionned in

--- Quote ---Re: ??? How is this possible ???
--- End quote ---
with the {$I %sourcefile%} in the units in correct places might show exactly what units are included and whether it is what it is expected.

I have been doing a bit of patching to JCF these days and know how it becomes difficult to not mix-up various iterations of same named sources simultaneously opened.

It might be important to explain what the path is used for. If it is to find resources during runtime, for example, ParamStr(0) would work. And if it is to include files from different locations, the paths property from the project options would work. Or one of the path macros, like $(ProjOutDir). Etc.


--- Quote from: SymbolicFrank on October 14, 2022, 10:41:14 am ---Or one of the path macros, like $(ProjOutDir). Etc.

--- End quote ---

Those don't work inside the code (unless you somehow forward them to the code using either defines or environment variables)


[0] Message Index

[*] Previous page

Go to full version