Delphi预定义的环境变量 [英] Delphi predefined environment variables

查看:960
本文介绍了Delphi预定义的环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我哪里可以找到RAD Studio中可用的伪环境变量的列表?像$(Platform),$(Config)等等。具体来说,我想要一个给我的RTL版本,所以我可以把我的编译单元(* .dcu)到正确的目录,即。 D15 for XE,D16 for XE2等。



我希望有一个与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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆