Public Declare Function ReadLSList_Caidan Lib "icxf.dll" Alias "_ReadLSList_Caidan@16" (ByVal macno As LONG, ByVal flag As String, ByRef listcount As Long, ByVal lsSJ As String) As long
调用函数
Private Sub Command21_Click()
Dim intret As Long
Dim flag As String
Dim listcount As Long
Dim recordbuf As String
strlstmp = String$(1300, vbNullChar)
flag = "F"
intret = ReadLSList_Caidan(2, flag, listcount, recordbuf)
Text1 = recordbuf ’读出为空?
End Sub
VB声明及调用方法
Public Declare Function ReadLSList_Caidan Lib "icxf.dll" Alias "_ReadLSList_Caidan@16" (ByVal macno As Integer, ByVal flag As String, ByRef listcount As Long, ByVal lsSJ As String) As Integer
调用函数
Private Sub Command21_Click()
Dim intret As Long
Dim flag As String
Dim listcount As Long
Dim recordbuf As String * 1300
flag = "F"
intret = ReadLSList_Caidan(2, flag, listcount, recordbuf) 'listcount本次读取的记录数
Text1 = recordbuf ’读出为空????????
End Sub