F
followindy
Unregistered / Unconfirmed
GUEST, unregistred user!
tO<br>以下是VB中调用XOM_SEND, XCOM_RECV的例子。供大家参考<br>Private Sub sendBtn_Click()<br> Dim ret As Long<br> Dim sendbuff As String <br> Dim msgid As String<br> <br> msgid = "z000"<br> sendbuff = String(50, "a")<br> ret = xcom_send(msgid, sendbuff, Len(sendbuff)) <br> If ret <> 0 Then<br> MsgBox CStr(ret)<br> End If<br>End Sub<br><br>Private Sub recvBtn_Click()<br> Dim ret As Long<br> Dim recvbuff As String <br> Dim msgid As String<br> Dim BorF As Long<br> Dim recvlength As Long<br> recvbuff = Space(4096)<br> msgid = Space(32) <br> ret = xcom_recv(55, recvbuff, 4096, msgid, recvlength, BorF) <br> recvbuff = RTrim(recvbuff)<br> msgid = RTrim(msgid)<br> MsgBox (msgid) <br> <br> If recvlength = Len(recvbuff) Then<br> MsgBox (recvbuff)<br> Else<br> MsgBox CStr(ret)<br> End If<br>End Sub<br><br>请大家帮忙 分我会再加