Vb调用问题

whmsd whmsd 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我用vc开发了一个基于控制台的dll库。
用vc的调用dll没有问题,用vf调用也没有问题。

在vb中
Declare Function f_DetectCom Lib "jsic.dll" (ByVal nCom As Integer) As Integer

Dim ret As Integer
Dim nCom As Integer

nCom = 1

ret = f_DetectCom(nCom)

If ret > 0 Then
Text1.Text = CStr(ret)
Else
MsgBox "error"
End If

程序执行后,出错
runtime error “49”
bad dll calling convention
...全文

相关推荐

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