|

楼主 |
发表于 2020-11-26 08:20:25
|
显示全部楼层
老哥,不大行,我是python32的
和dm.dll也在一个文件夹里

- Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] on win32
- Type "help", "copyright", "credits" or "license()" for more information.
- >>>
- ======================= RESTART: E:\逃兵\我爱学习\大漠插件\test.py ======================
- Traceback (most recent call last):
- File "E:\anaconda\lib\site-packages\win32com\client\dynamic.py", line 89, in _GetGoodDispatch
- IDispatch = pythoncom.connect(IDispatch)
- pywintypes.com_error: (-2147221021, '操作无法使用', None, None)
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "E:\逃兵\我爱学习\大漠插件\test.py", line 5, in <module>
- dm = win32com.client.Dispatch('dm.dmsoft')
- File "E:\anaconda\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
- dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
- File "E:\anaconda\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
- return (_GetGoodDispatch(IDispatch, clsctx), userName)
- File "E:\anaconda\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
- IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
- pywintypes.com_error: (-2147221164, '没有注册类', None, None)
复制代码 |
|