这是怎么回事 ( 积分: 10 )

  • 主题发起人 主题发起人 emeng
  • 开始时间 开始时间
E

emeng

Unregistered / Unconfirmed
GUEST, unregistred user!
[错误] umshc.dpr(11): Declaration expected but 'USES' found
 
你把 umshc.dpr 头 11 行代码贴出来看看。
 
什么东西没声明?看看错误地方的代码!
 
program umshc;

uses
Forms,
main in 'main.pas' {mainhc},
connectDlg in 'connectDlg.pas' {connect},
input in 'input.pas' {input1},

dq in 'dq.pas' {dangqian};

uses
Forms,
main in 'main.pas' {mainhc},
connectDlg in 'connectDlg.pas' {connect},
input in 'input.pas' {input1},


{$R *.res}



begin

Application.Initialize;
Application.CreateForm(Tmainhc, mainhc);
Application.CreateForm(Tconnect, connect);
Application.CreateForm(Tinput1, input1);

Application.Run;
end.
 
我早晨接着昨天的写,新建了窗口不好用 我就给在文件里边删除了 没想到出现这种情况
 
要不然就提示 but 'begin' found
 
program umshc;

uses
Forms,
main in 'main.pas' {mainhc},
connectDlg in 'connectDlg.pas' {connect},
input in 'input.pas' {input1},

dq in 'dq.pas' {dangqian};
//以下这几行删去
//uses
// Forms,
// main in 'main.pas' {mainhc},
// connectDlg in 'connectDlg.pas' {connect},
// input in 'input.pas' {input1},


{$R *.res}



begin

Application.Initialize;
Application.CreateForm(Tmainhc, mainhc);
Application.CreateForm(Tconnect, connect);
Application.CreateForm(Tinput1, input1);

Application.Run;
end.
 
删了 谢谢
 
帮你顶,接个分
 
多人接受答案了。
 

Similar threads

后退
顶部