好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

python调用大漠

#注册大漠插件
import win32com.client
dm = win32com.client.Dispatch('dm.dmsoft')
print(dm.Ver())

# 免注册大漠插件
import ctypes
from comtypes.client import CreateObject
dms = ctypes.windll.LoadLibrary(r'E:/dm/DmReg.dll')
dms.SetDllPathW(r'E:/dm.dll', 0)
dm = CreateObject('dm.dmsoft')
print(dm.Ver())

#dll的路径一定要绝对路径,不然会报错。

  

查看更多关于python调用大漠的详细内容...

  阅读:29次