替代TXMLDocument? [英] Alternative to TXMLDocument?

查看:163
本文介绍了替代TXMLDocument?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们将代码从Delphi 2009升级到Delphi XE,并更新了Indy组件(不知道这是否相关)。



但是从那时起,加载和保存XML文件时Windows Server 2003计算机上的错误。

  XMLDoc.LoadFromFile()
XMLDoc.SaveToFile )



Windows Server 2003(300kb左右)的DLL msvcrt.dll比其他操作超过600kb系统...所以它丢失的东西在该文件,并导致错误...



有谁知道如何解决这个问题?或者有可以替代 TXMLDocument ,我可以尝试吗?

解决方案

默认情况下,在Windows平台上运行时, c $ c> / IXMLDocument 只是围绕MSXML COM接口的包装。 TXMLDocument 也不是Indy使用 _ftol2_sse()函数,甚至链接到msvcrt.dll。项目中的其他内容是错误的。


Recently we upgraded our code from Delphi 2009 to Delphi XE and updated our Indy components (not sure if this is relevant).

But ever since then we have had errors on Windows Server 2003 machines when loading and saving XML files.

XMLDoc.LoadFromFile()
XMLDoc.SaveToFile()

The DLL msvcrt.dll is much smaller on Windows Server 2003 (300kb or so) compared to over 600kb on other operating systems... So its missing something in that file and its causing the error...

Does anyone know how to fix this? Or is there an alternative to TXMLDocument that I can try?

解决方案

By default, TXMLDocument/IXMLDocument is just a wrapper around the MSXML COM interfaces when running on Windows platforms. Neither TXMLDocument nor Indy use the _ftol2_sse() function, or even link to msvcrt.dll. Something else in your project is at fault.

这篇关于替代TXMLDocument?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆