vb中调用dll中的函数,有答案后立马结贴

beikehanbao23 2009-11-03 02:01:40
比如现有ms.dll中有一函数 SetTarget(A as integer,B as integer)没有返回值 应该怎么调用可

ms.dll已经在项目中添加引用 平时用.net 不知道vb语法怎么写


Thanks
...全文
52 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
getemail 2009-11-03
  • 打赏
  • 举报
回复
SetTarget(a, b)是不行的

[Quote=引用 3 楼 beikehanbao23 的回复:]
引用 1 楼 caozhy 的回复:
call SetTarget(a, b)

或者

SetTarget a, b


我错在加了括号了  这么调用的 SetTarget(a, b)
谢谢cfx
[/Quote]
beikehanbao23 2009-11-03
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 caozhy 的回复:]
call SetTarget(a, b)

或者

SetTarget a, b
[/Quote]

我错在加了括号了 这么调用的 SetTarget(a, b)
谢谢cfx
getemail 2009-11-03
  • 打赏
  • 举报
回复
dim aa as ms
aa.SetTarget a, b
threenewbee 2009-11-03
  • 打赏
  • 举报
回复
call SetTarget(a, b)

或者

SetTarget a, b

7,763

社区成员

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

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