原始做法For i = 0 To LenB(Send$) step 2
m1$ = MidB$(Send$, i, 2)
InterFilForm.Comm1.Output = m1$
Next现在做法
Dim sendOneWord(1) As Byte
For i = 0 To LenB(Send$) step 2
m1$ = MidB$(Send$, i, 2)
Call StringToByteArray_B(sendOneWord, m1$, 2) 将每个string 字符转为byte
InterFilForm.Comm1.Output = sendOneWord
Next发现现在做法比以前发送慢了很多,为什么,怎么提高发送速度
m1$ = MidB$(Send$, i, 2)
InterFilForm.Comm1.Output = m1$
Next现在做法
Dim sendOneWord(1) As Byte
For i = 0 To LenB(Send$) step 2
m1$ = MidB$(Send$, i, 2)
Call StringToByteArray_B(sendOneWord, m1$, 2) 将每个string 字符转为byte
InterFilForm.Comm1.Output = sendOneWord
Next发现现在做法比以前发送慢了很多,为什么,怎么提高发送速度
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货