python 免注冊調用dm


因為需要使用大漠插件

注冊com組件能調用,但是免注冊的沒找到資料,故折騰了一番

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

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

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM