所以我在vb中有一个函数,它被转换成一个dll,我想在python中使用。不管怎样尝试使用它,我都会收到一条错误消息
这是VB函数Function DISPLAYNAME(Name)
MsgBox ("Hello " & Name & "!")
End Function
这就是我在python中如何称呼它的
^{pr2}$
但是我会出错,那么调用dll的正确方法是什么Traceback (most recent call last):
File "C:\Test\testdll.py", line 4, in
print test.DISPLAYNAME("one")
File "C:\Python26\lib\ctypes\__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "C:\Python26\lib\ctypes\__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'DISPLAYNAME' not found
我一直在网上寻找,但到目前为止还没有解决办法。无法使用cdll,因为这是针对c程序的。在
我已经研究了一些与python和dll相关的问题,但是到目前为止还没有解决方案可以解决我的问题。在