本文介绍了为什么德尔福说“不能解决单位名称xxx”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi2010企业更新4.

当我在IDE中打开我的项目并显示主体代码时,有 2个单位名称以红色下划线

I'm working with Delphi2010 Enterprise Update 4.
When I'm opening my project in the IDE and displaying the mainform code, there are 2 unit names underline in red.

我有验证,单位来源的路径在库路径浏览路径

I have verified that the path to the unit source is in the Library path and in the Browsing path.

令人惊讶的是,当我在该单元上右键单击并选择在光标打开文件时,它可以工作(即,delphi打开正确的单位)。

Surprisingly, when I'm doing a right-clicking on the unit and selecting Open file at cursor, it works (ie. delphi opens the right unit).

任何想法?

推荐答案

Error Insight 是非常错误的。
它不了解你的代码的方式,编译器了解它。

Error Insight which keeps all the error messages into the structure view is quite buggy.It doesn't understand your code the way the compiler understands it.

由,减少了无法解决单位xyz问题的数量。

There is an IDE Fix Pack developed by Andreas Hausladen which reduces the number of those "Cannot resolve unit xyz" problems.

修复错误,但是通过解决一些Error Insight的线程问题,这些错误使得它们不太可见。

It doesn't fix the bug, but it makes them less visible by addressing some of the Error Insight's threading problems.

这篇关于为什么德尔福说“不能解决单位名称xxx”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 04:15