resource: *********.hbm.xml not found 这个错误完美解决

在hibernate.cfg.xml文件下

1. <mapping resource="package.User.hbm.xml" />


改成
 <mapping resource="package/User.hbm.xml" />

2. <mapping resource="package.package.User.hbm.xml" />


改成
 <mapping resource="package/package/User.hbm.xml" />

resource Tform1 not found

07-27

program Project14;rnrnusesrn Forms,rn Unit1 in 'Unit1.pas' Form1;rnrn$R *.resrnrnbeginrn Application.Initialize;rn Application.CreateForm(TForm1, Form1);rn Application.Run;rnend.rnrnrnrnrnunit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls;rnrntypern TForm1 = class(TForm)rn Label101: TLabel;rn Label102: TLabel;rn Label103: TLabel;rn Button1: TButton;rn Label104: TLabel;rn Label105: TLabel;rn Label106: TLabel;rn Label107: TLabel;rn Label108: TLabel;rn Label109: TLabel;rn Label120: TLabel;rn Label125: TLabel;rn Label124: TLabel;rn Label123: TLabel;rn Label122: TLabel;rn Label121: TLabel;rn Edit1a: TEdit;rn Edit1b: TEdit;rn Edit1c: TEdit;rn Edit2a: TEdit;rn Edit9c: TEdit;rn Edit8c: TEdit;rn Edit7c: TEdit;rn Edit6c: TEdit;rn Edit5c: TEdit;rn Edit4c: TEdit;rn Edit3c: TEdit;rn Edit2c: TEdit;rn Edit12a: TEdit;rn Edit11a: TEdit;rn Edit10a: TEdit;rn Edit9a: TEdit;rn Edit8a: TEdit;rn Edit7a: TEdit;rn Edit6a: TEdit;rn Edit5a: TEdit;rn Edit4a: TEdit;rn Edit3a: TEdit;rn Edit7b: TEdit;rn Edit6b: TEdit;rn Edit5b: TEdit;rn Edit2b: TEdit;rn Edit4b: TEdit;rn Edit3b: TEdit;rn Edit12b: TEdit;rn Edit12c: TEdit;rn Edit11c: TEdit;rn Edit10c: TEdit;rn Edit11b: TEdit;rn Edit10b: TEdit;rn Edit9b: TEdit;rn Edit8b: TEdit;rn Label1: TLabel;rn Label2: TLabel;rn Label3: TLabel;rn Label7: TLabel;rn Label5: TLabel;rn Label6: TLabel;rn Label4: TLabel;rn Label12: TLabel;rn Label11: TLabel;rn Label10: TLabel;rn Label9: TLabel;rn Label8: TLabel;rn procedure Button1Click(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rn arrayThing:array[1..12] of single;rn arrayNightwork:array[1..12] of single;rn arrayWeekendwork:array[1..12] of single;rn arrayResult:array[0..12] of single;rn arrayout:array[1..12] of single;rn monthflag:integer;rn flag:integer;rn i:integer;rnrnimplementationrnrnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn arrayThing[1]:=strtofloat(edit1a.text);rn arrayNightwork[1]:=strtofloat(edit1b.text);rn arrayWeekendwork[1]:=strtofloat(edit1c.text);rn arrayThing[2]:=strtofloat(edit2a.text);rn arrayNightwork[2]:=strtofloat(edit2b.text);rn arrayWeekendwork[2]:=strtofloat(edit2c.text);rn arrayThing[3]:=strtofloat(edit3a.text);rn arrayNightwork[3]:=strtofloat(edit3b.text);rn arrayWeekendwork[3]:=strtofloat(edit3c.text);rn arrayThing[4]:=strtofloat(edit4a.text);rn arrayNightwork[4]:=strtofloat(edit4b.text);rn arrayWeekendwork[4]:=strtofloat(edit4c.text);rn arrayThing[5]:=strtofloat(edit5a.text);rn arrayNightwork[5]:=strtofloat(edit5b.text);rn arrayWeekendwork[5]:=strtofloat(edit5c.text);rn arrayThing[6]:=strtofloat(edit6a.text);rn arrayNightwork[6]:=strtofloat(edit6b.text);rn arrayWeekendwork[6]:=strtofloat(edit6c.text);rn arrayThing[7]:=strtofloat(edit7a.text);rn arrayNightwork[7]:=strtofloat(edit7b.text);rn arrayWeekendwork[7]:=strtofloat(edit7c.text);rn arrayThing[8]:=strtofloat(edit8a.text);rn arrayNightwork[8]:=strtofloat(edit8b.text);rn arrayWeekendwork[8]:=strtofloat(edit8c.text);rn arrayThing[9]:=strtofloat(edit9a.text);rn arrayNightwork[9]:=strtofloat(edit9b.text);rn arrayWeekendwork[9]:=strtofloat(edit9c.text);rn arrayThing[10]:=strtofloat(edit10a.text);rn arrayNightwork[10]:=strtofloat(edit10b.text);rn arrayWeekendwork[10]:=strtofloat(edit10c.text);rn arrayThing[11]:=strtofloat(edit11a.text);rn arrayNightwork[11]:=strtofloat(edit11b.text);rn arrayWeekendwork[11]:=strtofloat(edit11c.text);rn arrayThing[12]:=strtofloat(edit12a.text);rn arrayNightwork[12]:=strtofloat(edit12b.text);rn arrayWeekendwork[12]:=strtofloat(edit12c.text);rn flag:=1;rn arrayresult[0]:=0;rn i:=0;rn for monthflag:=1 to 12 dorn beginrn if i>3 thenrn beginrn i:=0;rn arrayresult[flag-1]:=0;rn end;rn arrayresult[flag]:=arrayresult[flag-1]rn +arraything[flag]rn -arrayweekendwork[flag];rn if arrayresult[flag]>0 thenrn arrayresult[flag]:=arrayresult[flag]-arrayNightwork[flag];rn if arrayresult[flag]<0 thenrn i:=i+1rn elsern i:=0;rn arrayout[flag]:=arrayresult[flag];rn flag:=flag+1;rn end;rn label1.Caption:=floattostr(arrayout[1]);rn label2.Caption:=floattostr(arrayout[2]);rn label3.Caption:=floattostr(arrayout[3]);rn label4.Caption:=floattostr(arrayout[4]);rn label5.Caption:=floattostr(arrayout[5]);rn label6.Caption:=floattostr(arrayout[6]);rn label7.Caption:=floattostr(arrayout[7]);rn label8.Caption:=floattostr(arrayout[8]);rn label9.Caption:=floattostr(arrayout[9]);rn label10.Caption:=floattostr(arrayout[10]);rn label11.Caption:=floattostr(arrayout[11]);rn label11.Caption:=floattostr(arrayout[12]);rnend;rnrnend.rnrn这个是计算事假时间的,根据EDIT控件的值来计算事假时间,最后显示在LABEL上。rn请高手指教,出现的错误怎么解决。对比了其他程序,感觉结构没有错误,为什么说Tfrom1找不到。rn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试