VB如何调用dll
VB怎么调用dll
VB怎么调用dll
Dim gn As Object
Set obj = CreateObject(.....)
括号我写dll名字不对,写路径也不对,DDL应如何和VB相联?
我DLL里有个SUB叫JN如调用?如果是函数又如何调用?谢谢
------解决方案--------------------
假如你的dll中有类名为class1
则:
dim obj1 as new class1
然后你就可以象使用普通对象一样,使用你的自定义类的实例化对象了.
VB怎么调用dll
Dim gn As Object
Set obj = CreateObject(.....)
括号我写dll名字不对,写路径也不对,DDL应如何和VB相联?
我DLL里有个SUB叫JN如调用?如果是函数又如何调用?谢谢
------解决方案--------------------
假如你的dll中有类名为class1
则:
dim obj1 as new class1
然后你就可以象使用普通对象一样,使用你的自定义类的实例化对象了.