|

楼主 |
发表于 2008-3-24 15:41:21
|
显示全部楼层
写成这样还是有出错
unit MainForm;
interface
uses
Business.System, Business.Forms, RTLConsts;
type
TMainForm = class(TForm)
Panel1: TPanel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{private declarations}
public
{public declarations}
end;
implementation
procedure TMainForm.Button1Click(Sender: TObject);
const
cGUID = '4B666B997C49446688B339B6D944AA5B';
begin
if not FileSys.FileSystem.FileExists(TRTLConsts.DocRoot) then //TRTLConsts在协同常量库
try
FileSys.FileSystem.CreateFile(TRTLConsts.DocRoot, cGUID, [], TFileKind.fkSpace, TRTLConsts.DocDisplayName);
except
on E: TObject do
raise Exception.CreateFmt('知识中心基础数据错误,初始化失败。'#13#10 + '错误原因:%s', [jsCommon.ExceptText(E)]);
else
raise;
end;
end;
end.
错误为:“[错误]Biz:GLLCGLGLLCGL_YWGN1.FUNC.DIRMainForm.Form.pas(6, 36): 找不到命名空间“RTLConsts”(是否缺少 程序集引用?)”
|
|