Dim Key As Long
Packet = txtSend.Text
PacketLength = Len(txtSend.Text)
key = &H82381AC + PacketLength * "17"
For ix = 1 To PacketLength - 1
OneCharacter = Mid$(Packet, ix, 1)
NewCharacter = Asc(OneCharacter) Xor key And &H1F
key = key * "13" Xor &H43B
Next ix
循環將運行大約3次然後溢出。我想不管你做什麼異或會導致字節,整數或長。 CDec(Key)將無法工作我需要一種方法來繞過這個,所以我可以Xor大數字。需要幫助Vb6異或大號
114141413415比字符長。但是當你弄明白的時候,答案會是114141414428。 – JoshRoss 2012-02-18 18:42:56