【发布时间】:2013-01-23 11:16:40
【问题描述】:
我希望通过包装来自 windows dll 的函数来测试 python 的 ctypes。是否有可以在 windows vista 上使用的 windows dll 进行测试?例如,也许 dll 有一个以字符串形式返回当前时间的函数。
如果没有,我想我将不得不用 C 和 Visual Studio Express 编写自己的 dll。
【问题讨论】:
我希望通过包装来自 windows dll 的函数来测试 python 的 ctypes。是否有可以在 windows vista 上使用的 windows dll 进行测试?例如,也许 dll 有一个以字符串形式返回当前时间的函数。
如果没有,我想我将不得不用 C 和 Visual Studio Express 编写自己的 dll。
【问题讨论】:
最容易包装的是消息框函数:它实际上是 dll 包装的 hello-world。它住在user32.dll。看看here
【讨论】: