【问题标题】:Does ironpython have libraries that replace the pywin32 extensions?Ironpython 是否有替换 pywin32 扩展的库?
【发布时间】:2008-12-22 05:55:54
【问题描述】:

我有一些使用 pywin32 扩展的旧 python 代码。从.net开始,我想把它移植到ironpython。

旧的 python 代码使用诸如 pythoncom.com_error、pywintypes.Time 之类的东西,并接口一个实现 IDispatch 接口的 COM 模块。

ironpython 的 .net 库是否具备与 COM 模块通信所需的一切? 具体来说,它有什么东西可以代替 com_error 和 Time 吗?

谢谢。

【问题讨论】:

    标签: .net com ironpython


    【解决方案1】:

    回答我自己的帖子.. :-)

    1. com_error 可能被 System.Runtime.InteropServices.COMException 替换
    2. pywintypes.Time 可以替换为 System.DateTime,(IDispatch 接口中的 DATE)

    如果有人知道有关 IronPython、COM 互操作性和从 pywin32 迁移到 .net 的任何好的文档,请回复..

    【讨论】:

      猜你喜欢
      • 2020-09-06
      • 2016-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-25
      • 2017-04-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多