Vb调用问题

whmsd 2004-03-08 02:46:06
我用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
...全文
75 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

7,759

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧