通过声明API的方式来调用该函数. 例如: Public Declare Function MGetLunarData Lib "Lunar.dll " Alias "_GetLunarData" (GLunarDate As mLunarDate) As Long
没有入口点的函数, 你必须知道dll函数的标识序号 然后用 #序号 做别名。 ex:Declare Function GetWindowsDirectory Lib "kernel32" _ Alias "#432" (ByVal lpBuffer As String, _ ByVal nSize As Long) As Long
通过声明API的方式来调用该函数.
例如:
Public Declare Function MGetLunarData Lib "Lunar.dll " Alias "_GetLunarData" (GLunarDate As mLunarDate) As Long
然后用 #序号 做别名。 ex:Declare Function GetWindowsDirectory Lib "kernel32" _
Alias "#432" (ByVal lpBuffer As String, _
ByVal nSize As Long) As Long