Delphi XE2: Error F1026 for jpeg and pngimg units

Hints for changes required when you upgrade your project from WPTools <b>4</b> to <b>5 and later</b><br>
If you have found out a solution yourself please also post here!
wpsupport
Site Admin
Posts: 7369
Joined: Fri Oct 24, 2003 4:06 pm
Contact:

Delphi XE2: Error F1026 for jpeg and pngimg units

Postby wpsupport » Fri Oct 07, 2011 8:43 am

If you get the compiler error

F1026 file not found for the jpeg or pngimage unit, please make sure to add the package vclimg, (in case you are using packages or building the designtime package)

Then also specify the proper namesspace which is VCL.Imaging.

Instead of just write "jpeg" in uses, write

"{$IFDEF VER230} VCL.Imaging.Jpeg {$ELSE} Jpeg {$ENDIF}"

Regards,
WPCubed Support

Return to “FAQ WPTools <b>Upgrade to 5 and 6</b>”



Who is online

Users browsing this forum: No registered users and 2 guests