vb可以调用pb编写的dll吗?怎么调用?
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click Dim a As string a = uf_hello1()
End Sub
Public Declare Function uf_hello1 Lib "d:\genappcom.dll" Alias "uf_hello" () As String运行之后报错:无法在 DLL“d:\genappcom.dll”中找到名为“uf_hello”的入口点。请高手指点,小妹感激不尽
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click Dim a As string a = uf_hello1()
End Sub
Public Declare Function uf_hello1 Lib "d:\genappcom.dll" Alias "uf_hello" () As String运行之后报错:无法在 DLL“d:\genappcom.dll”中找到名为“uf_hello”的入口点。请高手指点,小妹感激不尽
genappcom.dll就是我要调用的pb动态库,uf_hello就是动态库中封装的方法。请问还有什么不忙吧么?
我也注册过,引用也添加了,命名空间也引用了,
public Declare function uf_hello lib "genappcom.dll"()as string你把可执行程序和DLL文件放在同一个目录下。
dim obj as new 类名称obj.方法()来进行调用试一试。
报如下错误:
从 IClassFactory 为 CLSID 为 {8C8F6FEF-785A-47AD-9318-E205288CBD36} 的 COM 组件创建实例失败,原因是出现以下错误: ffffdf8f。