为什么Jpeg在一些项目中的uses子句中被接受,而在其他项目中,vpe.imaging.jpeg是必需的? [英] Why Jpeg is accepted in the uses clause in some projects and in others vcl.imaging.jpeg is required?

查看:240
本文介绍了为什么Jpeg在一些项目中的uses子句中被接受,而在其他项目中,vpe.imaging.jpeg是必需的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新一些项目到XE2,我不明白为什么在某些项目上

 使用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屋!

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