delphi – 找不到Dcu文件
发布时间:2020-12-15 09:20:48 所属栏目:大数据 来源:网络整理
导读:编译我的Delphi代码时遇到问题. 我有3个类,XmlFileManager(具体),XmlNodeManager(抽象),XmlEnpManager(XmlNodeManager的子项和具体). 下面,一些定义类代码: XmlFileManager unit XmlFileManager;interfaceuses xmldom,XMLIntf,msxmldom,XMLDoc,SysUtils,Dat
编译我的Delphi代码时遇到问题.
我有3个类,XmlFileManager(具体),XmlNodeManager(抽象),XmlEnpManager(XmlNodeManager的子项和具体). 下面,一些定义类代码: XmlFileManager unit XmlFileManager; interface uses xmldom,XMLIntf,msxmldom,XMLDoc,SysUtils,DateUtils,Classes,Dialogs,XmlNodeManager,XmlEnpManager; type TXmlFileManager = class [...] end; [...] end. XmlNodeManager unit XmlNodeManager; interface uses xmldom,XmlFileManager; type TXmlNodeManager = class [...] end; [...] end. XmlEnpManager unit XmlEnpManager; interface uses xmldom,XmlFileManager,XmlNodeManager; type TXmlEnpManager = class (TXmlNodeManager) [...] end; [...] end. 在XmlNodeManager和XmlEnpManager中,无法识别TXmlFileManager类.编译时,编译失败并显示消息:
过去,XmlFileManager被称为XmlManager. 我的.dpr: uses Forms,Main in 'formsMain.pas' {Principal},Globals in 'unitsGlobals.pas',CrearProyectoForm in 'formsCrearProyectoForm.pas' {NuevoProyecto},Validadores in 'unitsValidadores.pas',IdiomaClass in 'unitsIdiomaClass.pas',IdiomaCastellanoClass in 'unitsIdiomaCastellanoClass.pas',ExcelFileManagerClass in 'unitsExcelFileManagerClass.pas',SeleccionarIdioma in 'formsSeleccionarIdioma.pas' {SelectLang},EnpView in 'formsEnpView.pas' {ENP},EnpViewGeneric in 'formsEnpViewGeneric.pas' {EnpGeneric},Vcl.Themes,Vcl.Styles,EnpViewAdd in 'formsEnpViewAdd.pas' {EnpAdd},EnpViewAddAfter in 'formsEnpViewAddAfter.pas' {EnpAddAfter},EnpViewEdit in 'formsEnpViewEdit.pas' {EnpEdit},EnpInicial in 'formsEnpInicial.pas' {ENPViewInicial},XmlFileManager in 'unitsXmlFileManager.pas',XmlNodeManager in 'unitsXmlNodeManager.pas',XmlEnpManager in 'unitsXmlEnpManager.pas'; 解决方法
您的主要源文件SiGAS.dpr仍将其列为XmlManager,因此……
打开* .dpr文件(它只是Delphi代码)并在uses子句中修复单元名称,然后重建. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |