本文介绍了HOW TO:仅在运行时声明DLL函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何做这样的事情:


私人代表功能勾选()作为整数

私人子MySub()

Dim MyExternalFunc As Tick

''????????在这里写什么来声明相当于:

''MyExternalFunc = AddressOf函数GetTickCount Lib" kernel32"

Alias" GetTickCount" ()作为整数

Me.Text = MyExternalFunc()

结束子

Anyone know how to do something like this:

Private Delegate Function Tick() As Integer
Private Sub MySub()
Dim MyExternalFunc As Tick
''???????? what to write here to declare the equivalent of:
''MyExternalFunc = AddressOf Function GetTickCount Lib "kernel32"
Alias "GetTickCount" () As Integer
Me.Text = MyExternalFunc()
End Sub

推荐答案








这篇关于HOW TO:仅在运行时声明DLL函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 06:06