设计时包无法构建 - 找不到文件:'Graphics.dcu' [英] Design-time package fails to build - File not found: 'Graphics.dcu'

查看:408
本文介绍了设计时包无法构建 - 找不到文件:'Graphics.dcu'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Delphi XE2中,我有一对控制器设计/运行时间包。最初,一切都正常。我已经建立了每一个。突然没有警告,设计时间包开始抱怨我的一个单位,当我构建时,$ code> Graphics 单元丢失。 图形是一个标准单位,但从这个地方找不到。我甚至没有对本单位做出任何改变,据我所知,任何可能影响这一点的变化。



这里只是在顶部的用途)单位:

 使用
图形,ColorConv,类,对话框,ZLib;

正如你所看到的,这是一个非常简单的单元,我只对这个项目进行了简单的更改。什么可以让它开始抱怨这无处不在?



奇怪的是,如果我安装它,它一切正常,它只是不建立。 p>

有相当多的代码,我讨厌不得不发布整个事情。

解决方案

野蛮猜测:需要 Vcl。命名空间前缀?


In Delphi XE2, I have a single control in a pair of design/run time packages. Originally, everything was working fine. I've built each of them many times already. Suddenly without warning, the design time package started complaining in one of my units that the Graphics unit is missing when I build. Graphics is a standard unit, but it's not found from this one place. I haven't even made any changes to this unit, and as far as I know, any changes that could affect this.

Here's just the uses at the top (interface) of this unit:

uses
  Graphics, ColorConv, Classes, Dialogs, ZLib;

As you can see, it's a very simple unit, and I only make very simple changes to this project. What could make it start complaining about this out of nowhere?

The strange thing is that it all works fine if I install it, it just doesn't build.

There's quite a bit of code, and I'd hate to have to post the entire thing.

解决方案

Wild guess: it needs the Vcl. namespace prefix?

这篇关于设计时包无法构建 - 找不到文件:'Graphics.dcu'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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