delphi打开工程文件时出错!
Errorinmodule:calltoapplication.CreateFormismissingorincorret打开工程文件时出现这个错误怎么办?我也知道是窗体...
Error in module: call to application.CreateForm is missing or incorret
打开工程文件时出现这个错误怎么办?
我也知道是窗体的问题,就是不知道怎么解决!!!!!上火啊.....
program za;
uses
windows,forms,
main in 'main.pas' {Form1},
gdly in 'gdly.pas' {zagdly},
ggb in 'ggb.pas' {ggbform},
data in 'data.pas' {dataform},
dl in 'dl.pas' {dlform},
jm in 'jm.pas',
zagl in 'zagl.pas' {zaglform},
wdrunonce in 'wdrunonce.pas';
{$R *.res}
begin
Application.Initialize;
if not AppHasRun(Application.Handle) then
Application.CreateForm(TForm1, Form1)
else
halt;
Application.CreateForm(Tdataform, dataform);
Application.Run;
end.
大家看看,有没有毛病!
---------------
终于找到原因了!
begin
Application.Initialize;
if not AppHasRun(Application.Handle) then
begin
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tdataform, dataform);
end;
Application.Run;
end.
这样改一下,一切正常. 展开
打开工程文件时出现这个错误怎么办?
我也知道是窗体的问题,就是不知道怎么解决!!!!!上火啊.....
program za;
uses
windows,forms,
main in 'main.pas' {Form1},
gdly in 'gdly.pas' {zagdly},
ggb in 'ggb.pas' {ggbform},
data in 'data.pas' {dataform},
dl in 'dl.pas' {dlform},
jm in 'jm.pas',
zagl in 'zagl.pas' {zaglform},
wdrunonce in 'wdrunonce.pas';
{$R *.res}
begin
Application.Initialize;
if not AppHasRun(Application.Handle) then
Application.CreateForm(TForm1, Form1)
else
halt;
Application.CreateForm(Tdataform, dataform);
Application.Run;
end.
大家看看,有没有毛病!
---------------
终于找到原因了!
begin
Application.Initialize;
if not AppHasRun(Application.Handle) then
begin
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tdataform, dataform);
end;
Application.Run;
end.
这样改一下,一切正常. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询