请问vb中怎样调用dll?

请给个sample
[9 byte] By [darkdarktemplar-archon] at [2008-6-5]
# 1
工程--引用--浏览 然后选择你需要调用的 dll

然后把这个对象实例化,然后使用
# 2
我试了一下,好像不行,提示“Cannot add a refrence to the specified file”
darkdarktemplar-archon at 2007-10-23 > top of Msdn China Tech,其他开发语言,Office开发/VBA...
# 3
上面的方法不成,那你就象API一样直接声明。
下面的函数ValidStation就是oak.dll中的
Private Declare Function ValidStation Lib "oak" (ByVal iProduct As Integer, ByVal lModule As Long) As Long
wqb-啊喂 at 2007-10-23 > top of Msdn China Tech,其他开发语言,Office开发/VBA...
# 4
菜单栏:工具——》应用,找到你的动态库
x_tianping-夏天平 at 2007-10-23 > top of Msdn China Tech,其他开发语言,Office开发/VBA...
# 5
to : wqb,这样写是不是发布的时候必须dll和exe在同一目录下?
darkdarktemplar-archon at 2007-10-23 > top of Msdn China Tech,其他开发语言,Office开发/VBA...