Posted in Python onJanuary 12, 2009
# -*- coding: GBK -*-
from ctypes import *
dll = windll.LoadLibrary('JBA188.dll')
a = dll.test()
print '测试设备连接状态%s' % a
srcName = c_char_p("publish_pd.bin")
decName = c_char_p('d:\\publish_pd.bin')
b = dll.upfile(srcName,decName)
print '将文件上传至计算机%s' % b
pStr = c_char_p()
pStr.value = ''
c = dll.getdatetime(pStr);
print '读取抄表机时间%s' % c
print pSt
Python 调用DLL操作抄表机
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@