为什么Jpeg在一些项目中的uses子句中被接受,而在其他项目中,vpe.imaging.jpeg是必需的? [英] Why Jpeg is accepted in the uses clause in some projects and in others vcl.imaging.jpeg is required?
问题描述
使用jpeg;
被接受
需要写
使用vcl.imaging.jpeg;
请问您可以解释一下吗?
区别在于各种项目的项目选项中的单位范围名称设置。
如果您有 Vcl.Imaging
包含在该设置中,则不需要完全指定单位范围。通常,从以前的Delphi版本升级的旧项目将包含在单位范围名称设置中的 Vcl.Imaging
。新项目没有。
这是在单位范围名称的文档。
I am updating some projects to XE2 and I don't understand why on some projects
uses jpeg;
is accepted
and in other i need to write
uses vcl.imaging.jpeg;
Could you explain me please?
The difference is down to the the unit scope names setting in the project options for your various projects.
If you have Vcl.Imaging
included in that setting then you don't need to fully specify the unit scope. Typically, old projects that are upgraded from previous Delphi versions will have Vcl.Imaging
included in the unit scope names setting. New projects do not.
This is described in the documentation for Unit Scope Names.
这篇关于为什么Jpeg在一些项目中的uses子句中被接受,而在其他项目中,vpe.imaging.jpeg是必需的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!