编程语言
首页 > 编程语言> > python调用大漠

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的路径一定要绝对路径,不然会报错。

  

标签:插件,dm,python,dll,调用,client,大漠,import
来源: https://blog.51cto.com/u_14814727/2733091