2,496
社区成员
发帖
与我相关
我的任务
分享
program Project1;
uses
Forms,
USC in '进销存系统2\image\USC.pas' {SC},
UDM in '进销存系统2\image\UDM.pas' {DM: TDataModule};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TSC, SC);
Application.CreateForm(Tmain,main); {如果main是主窗体的话,应该创建在DM的前面}
Application.CreateForm(TDM, DM);
if not DM.ADOConn.Connected then //估计应该是这条语句出错,但数据库手动连接是正常的
begin
halt;
end;
SC.Hide;
Sc.FreeOnRelease;
Application.CreateForm(TLOGIN,LOGIN);
LOGIN.ShowModal;
LOGIN.Free;
Application.Run;
end.