如题,在本机运行正常,但是到客户的电脑上运行时,却出现“灾难性故障”。NewXMLDocument方法是Borland标准库里的方法。function NewXMLDocument(Version: DOMString = '1.0'): IXMLDocument;
begin
Result := TXMLDocument.Create(nil);
Result.Active := True;
if Version <> '' then
Result.Version := Version;
end;
begin
Result := TXMLDocument.Create(nil);
Result.Active := True;
if Version <> '' then
Result.Version := Version;
end;
var XmlRef:IXMLDocument;
function NewXMLDocument(Version: DOMString = '1.0'): IXMLDocument;
begin
Result := TXMLDocument.Create(nil);
Result.Active := True;
if Version <> '' then
Result.Version := Version; XmlRef:=Result as IXMLDocument;
end;