VB调用C++写的dll库后的问题!

ha1ha1ha ha1ha1ha 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
引用一个dll
Dim telconnobj As New FAXCOMXLib.FaxClientX
Dim telnumobj As New FAXCOMXLib.SendTask
Dim telresultobj As New FAXCOMXLib.ResultTask

dim numOfTasks as long

ReDim starttime() as string
ReDim faxendtime()as string
ReDim sendjg()as string
ReDim sendid()as string

ReDim starttime(numOfTasks)as string
ReDim faxendtime(numOfTasks)as string
ReDim sendjg(numOfTasks)as string
ReDim sendid(numOfTasks)as string

telconnobj.PickResultTask mCid, telresultobj
'telresultobj是一个自定义结构,是dll函数库中的!

'telconnobj.PickResultTask mCid, telresultobj他是调用一个c++的dll函数!

for j=0 to numoftasks-1

MsgBox telresultobj.starttime'这是调完dll之后,返回的 telresultobj 这个结构中的!
MsgBox telresultobj.EndTime'这是调完dll之后,返回的 telresultobj 这个结构中的!

到这,,返回的两个时间是正确的!

starttime(j) = telresultobj.starttime
faxendtime(j) = telresultobj.EndTime

MsgBox starttime(j)
MsgBox faxendtime(j)

到这,,这两个时间就都变成telresultobj.starttime了!
next
原本代码中有很多代码,检查到最后,一一删除,就剩这些了,才发现是此问题,请高手帮下兄弟!
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
ha1ha1ha
VB基础类 7,788 成员 197,583 内容