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 Ifshowtest为dll中的一个函数,lp返回值为0,不知为何?
这两个函数到底怎么用?
lHandle = LoadLibrary("ThingDemo2.dll")
Dim lp As Long
If lHandle <> 0 Then
lp = GetProcAddress(lHandle, "showtest")
End If
If lp <> 0 Then
showtest
End Ifshowtest为dll中的一个函数,lp返回值为0,不知为何?
这两个函数到底怎么用?
VB中,這樣調用,很不好。
改成C++、DELPHI等語言,動態調用會好很多