http://www.kekun.com/download/autowbpy.htm上面的AutoWBPY.dll 如何在vb和asp中引用和调用?Private Declare Function getbm Lib "AutoWBPY.dll" (ByVal str As String, ByVal sel As Integer) As String 不能用regsvr32.exe 注册,也不能直接引用 这样试过了,不行啊:)
regsvr32 AutoWBPY.dll显示 AutoWBPY.dll was loaded,but the DllRegisterServer entry point wan not found.
他如果是一个输出函数的dll就不用注册 你只要知道他的输出结构 然后像调用API那样使用就可以了
要把该DLL文件放在调用它的Exe文件的当前文件夹下,或者放在系统文件夹(如:D:\Winnt\System32)Private Declare Function getbm Lib "AutoWBPY.dll" (ByVal str As String, ByVal sel As Integer) As String 所谓的声明,就是把这一句放在模块的顶端,所有Sub或Function的外面 如果是Module,Private要改成Public至于ASP,是不能使用标准DLL的,可以用VB做一个ActiveX DLL(需要注册和引用的),ASP来用
Private Declare Function getbm Lib "AutoWBPY.dll" (ByVal str As String, ByVal sel As Integer) As String这样也不行。dll 已经拷贝到了系统目录和当前程序目录下了。一运行 连vb也退出了把 ByVal str As String 改了 ByRef str As String 也是一样。
你只要知道他的输出结构 然后像调用API那样使用就可以了
所谓的声明,就是把这一句放在模块的顶端,所有Sub或Function的外面
如果是Module,Private要改成Public至于ASP,是不能使用标准DLL的,可以用VB做一个ActiveX DLL(需要注册和引用的),ASP来用
AutoWBPY.dll是用Delphi6编写的标准Dll,可以在其他语言调用的,至少他是这么说的~
也是一样。