简体   繁体   English

未找到Delphi XE3文件GIFImage.dcu

[英]Delphi XE3 File Not Found GIFImage.dcu

My first question here - this is new install of Delphi XE3. 我的第一个问题 - 这是Delphi XE3的新安装。 I thought animated GIF support was now built in to Delphi (since 2007?). 我认为动画GIF支持现在内置于Delphi(自2007年以来?)。

When I drop a TImage on my form, all is good until I populate the Picture field with an animated GIF file. 当我在我的表单上删除TImage时,一切都很好,直到我用动画GIF文件填充图片字段。 As soon as I do that, the IDE adds the following to my uses clause 一旦我这样做,IDE就会将以下内容添加到我的uses子句中

uses ... , Vcl.Imaging.GIFImg, GIFImage;

At that point, the IDE and compiler say it can't find GIFImage.dcu 那时,IDE和编译器说它找不到GIFImage.dcu

[dcc32 Fatal Error] pco.pas(7): F1026 File not found: 'GIFImage.dcu'

I've searched my system and I don't find a GIFImage.dcu file anywhere. 我搜索了我的系统,我没有在任何地方找到GIFImage.dcu文件。 There are some TGIFImage files in some of the RAD Studio folders - like .bpl, .bpi, .dcp, .lib, and two .hpp files - one for both TGIFImage and GIFImage. 某些RAD Studio文件夹中有一些TGIFImage文件 - 如.bpl,.bpi,.dcp,.lib和两个.hpp文件 - 一个用于TGIFImage和GIFImage。

If I go do a download of the GIFImage stuff from Finn's site here http://www.tolderlund.eu/delphi/ , and then put the GIFImage.pas file in my project, the situation resolves itself. 如果我从Finn的网站http://www.tolderlund.eu/delphi/下载GIFImage的东西,然后将GIFImage.pas文件放入我的项目中,情况就会自行解决。

But according to this post How to use Animated Gif in a delphi form , GIFImage is now built in to Delphi, so I don't think I should have to do that ... So what am I missing here? 但根据这篇文章如何使用delphi形式的动画Gif ,GIFImage现在内置于Delphi中,所以我认为我不应该这样做......所以我在这里缺少什么? TIA. TIA。

The name of the unit in XE3 is Vcl.Imaging.GIFImg . XE3中单元的名称是Vcl.Imaging.GIFImg The TGIFImage class is defined in that unit. TGIFImage类在该单元中定义。

There is no GIFImage unit in XE3. GIFImage中没有GIFImage单元。 Simply remove all references to that unit. 只需删除对该单元的所有引用。

I guess at some point the unit was renamed. 我想在某些时候该单位已重命名。 Probably when it was taken on by Embarcadero and incorporated into Delphi. 可能是它被Embarcadero采用并并入Delphi。

If I go do a download of the GIFImage stuff from Finn's site here http://www.tolderlund.eu/delphi/ , and then put the GIFImage.pas file in my project, the situation resolves itself. 如果我从Finn的网站http://www.tolderlund.eu/delphi/下载GIFImage的东西,然后将GIFImage.pas文件放入我的项目中,情况就会自行解决。

Don't do this. 不要这样做。 Delete those files. 删除这些文件。 If you go down that route you will have two versions of the same GIF code. 如果你沿着那条路走下去,那么你将拥有相同GIF代码的两个版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM