H
happyxhl
Unregistered / Unconfirmed
GUEST, unregistred user!
如下代码:
var
s:string;
begin
Application.Initialize;
s:=GetTitleName; //获得程序标题
Application.Title := s; //注释此句没问题
Application.CreateForm(TDM, DM);
Application.CreateForm(TMainForm,MainForm);
Application.Run;
end.
为何加上Application.Title :=s后DELPHI便后Disable掉Run菜单,无法运行,且如果保存,则下次无法打开源程序,出错:Error in module:Call to Application.CreateForm is missing or incorrect.请各位出出主意啊。
var
s:string;
begin
Application.Initialize;
s:=GetTitleName; //获得程序标题
Application.Title := s; //注释此句没问题
Application.CreateForm(TDM, DM);
Application.CreateForm(TMainForm,MainForm);
Application.Run;
end.
为何加上Application.Title :=s后DELPHI便后Disable掉Run菜单,无法运行,且如果保存,则下次无法打开源程序,出错:Error in module:Call to Application.CreateForm is missing or incorrect.请各位出出主意啊。