10进制和16进制别搞错了^_^,下面代码你在整理一下吧
Private Sub Command1_Click()
Dim i As Integer
Dim aa
Dim bb As Integer
Dim cc As Integer
Dim dd As Integer
Dim str As String
str = "00 16 30 30 41 31 30 30 30 30 30 30 30 30 30 31 30 30 03"
aa = Split(str, " ")
cc = CInt(Mid((aa(0)), 1, 1)) * 16 + CInt(Mid((aa(0)), 2, 1))
For i = 1 To UBound(aa)
dd = CInt(Mid((aa(i)), 1, 1)) * 16 + CInt(Mid((aa(i)), 2, 1))
cc = cc Xor dd
Next i
Text1.Text = Hex(cc)
End Sub