Why Jpeg is accepted in the uses clause in some projects and in others vcl.imaging.jpeg is required?

那年仲夏 提交于 2019-12-07 05:55:32

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9130615/why-jpeg-is-accepted-in-the-uses-clause-in-some-projects-and-in-others-vcl-imagi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!