unit UnitMDIParent;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;type
TMDIParent = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;var
MDIParent: TMDIParent;implementation{$R *.dfm}
uses UnitMDIChild;
var
Child:TMDIChild;
begin
Child:=TMDIChild.Create(Application);
Child.Caption:='文档';
end.
这个是父窗口的代码,运行了一下
Debuuger Execption Motification
Project ProjectMDI.exe raised exception class EInvalidOperation with message 'Cannot create form.No MDI forms are currently active'.Process stopped.Use Step or Run to continue.
这个是什么错误阿,我是个新手,希望能得到指导,谢谢!
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;type
TMDIParent = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;var
MDIParent: TMDIParent;implementation{$R *.dfm}
uses UnitMDIChild;
var
Child:TMDIChild;
begin
Child:=TMDIChild.Create(Application);
Child.Caption:='文档';
end.
这个是父窗口的代码,运行了一下
Debuuger Execption Motification
Project ProjectMDI.exe raised exception class EInvalidOperation with message 'Cannot create form.No MDI forms are currently active'.Process stopped.Use Step or Run to continue.
这个是什么错误阿,我是个新手,希望能得到指导,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货