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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The difference is down to the the unit scope names setting in the project options for your various projects.
If you have
Vcl.Imagingincluded 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 haveVcl.Imagingincluded in the unit scope names setting. New projects do not.This is described in the documentation for Unit Scope Names.