Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用只有标准 VCL 库的 Delphi 2010。目标系统是win32。
如果我有对 IXMLDocument 的引用,我如何获得 IXMLDocument 包装的底层对象的 IXMLDOMDocument2 接口?
function GetXMLDOMDocument2(const XMLDocument: IXMLDocument): IXMLDOMDocument2; begin Result := (XMLDocument.DOMDocument as IXMLDOMNodeRef).GetXMLDOMNode as IXMLDOMDocument2; end;