菜鸟提问,delphi7的问题,求高手相助!

[Fatal Error] Unit12.pas(37): Could not compile used unit 'Unit13.pas'
uses Unit6, Unit1, Unit13;

[Error] Unit13.pas(46): Undeclared identifier: 'OpenDialog'
[Error] Unit13.pas(46): 'THEN' expected but identifier 'Execute' found
if OpenDialog.Execute then

[Error] Unit13.pas(71): Undeclared identifier: 'LabelFrame'
[Error] Unit13.pas(71): Missing operator or semicolon
LabelFrame.Caption := '当前没有加载影片';

[Error] Unit13.pas(75): Missing operator or semicolon
LabelFrame.Caption :=
'当前为第' + inttostr(ShockwaveFlash1.FrameNum) + '帧';

格式为错误提示和对应行的内容!
尤其是致命错误,求详细的解答,万分感谢!

你这个应该是用于flash播放的
1:不能编译'Unit13.pas' ,你这个是直接创建的还是应用的?
再创建一个Unit14看是否能编译
2:OpenDialog没有定义 你放的控件名字应该是OpenDialog1 改成OpenDialog就可以了
3:LabelFrame 同上
4:LabelFrame 同上
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-05-08
你没有引用单元吧
窗体也没用初始化追问

[Fatal Error] Unit1.pas(34): Program or unit 'Unit1' recursively uses itself
Unit2, Unit1, Unit4,Unit3, Unit5,Unit6,Unit7,Unit8,Unit9,Unit10,Unit11;

[Fatal Error] Unit4.pas(29): Could not compile used unit 'Unit6.pas'
uses Unit5, Unit1, Unit6;

像这样的问题要怎样解决?求详细解答!

追答

你设置的是不是子父窗体啊?

追问

我是在一个project下,有14个窗体,每个窗体间可能会有相互调用!!!

追答

这个你 肯定要有一个共同的父窗体的 你可以创建一个deatemold

第2个回答  2012-05-08
第一个错误说明你UNIT13那边有编译错误。
之后的几个问题应该都是命名的问题,如1楼说的。
相似回答