Delphi预定义的环境变量 [英] Delphi predefined environment variables
问题描述
我希望有一个与RTLVersion编译器条件定义相对应,但$(RTLVersion )不起作用。
没有一个RTLVersion 变量,但是您可以轻松创建选项环境变量
或Windows注册表。
对于Delphi XE检查此条目
HKEY_CURRENT_USER\Software\\ \\ Embarcadero\BDS\8.0\Environment变量
然后,您可以创建一个名为 RTLVersion
然后从Delphi IDE你可以这样使用
Can anyone tell me where to find a list of the "pseudo" environment variables available in RAD Studio? The ones like $(Platform), $(Config), and so on. Specifically, I want one which gives me the RTL version, so that I can put my compiled units (*.dcu) into the correct directory, ie. D15 for XE, D16 for XE2, etc.
I was hoping that there would be one of these which corresponds with the "RTLVersion" compiler conditional definition, but $(RTLVersion) doesn't work.
There is not a RTLVersion variable but you can create easily using the option Enviroment variables
or the windows registry.
For Delphi XE Check this entry
HKEY_CURRENT_USER\Software\Embarcadero\BDS\8.0\Environment Variables
Then you can create a new variable called RTLVersion
And then from the Delphi IDE you can use like so
这篇关于Delphi预定义的环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!