dim lHandle as long
lHandle = LoadLibrary("ThingDemo2.dll")
Dim lp As Long
If lHandle <> 0 Then
lp = GetProcAddress(lHandle, "showtest")
End If
If lp <> 0 Then
showtest
End If
showtest为dll中的一个函数,lp返回值为0,不知为何?
这两个函数到底怎么用?
...全文
913打赏收藏
VB动态调用dll问题
dim lHandle as long lHandle = LoadLibrary("ThingDemo2.dll") Dim lp As Long If lHandle 0 Then lp = GetProcAddress(lHandle, "showtest") End If If lp 0 Then showtest End If showtest为dll中的一个函数,lp返回值为0,不知为何? 这两个函数到底怎么用?