Hallo zusammen,
hier ist mein Code-Lese:
hier ist mein Registrierungscode:
Mein Problem ist, wenn ich meine Datei speichern und ich mit dem hxd es gibt mir so:
hier ist meine Originaldatei:
Können Sie mir helfen dieses Problem in der Aufnahme hex beheben? danke
hier ist mein Code-Lese:
VB.NET-Quellcode
- Private Sub ReadFile(FilePath As String)
- Me.ListView1.Items.Clear()
- Dim input As New FileStream(FilePath, FileMode.Open, FileAccess.Read, FileShare.Read)
- Dim reader As New BinaryReader(input)
- reader.BaseStream.Position = &H270
- Dim num As Integer = 1
- Dim num2 As Integer = 0
- Do
- Dim position As Long = reader.BaseStream.Position - 10
- Dim hex As Byte() = reader.ReadBytes(8)
- Dim num3 As String = BitConverter.ToString(hex).Replace("-", "")
- Dim hex2 As Byte() = reader.ReadBytes(2)
- Dim num4 As String = BitConverter.ToString(hex2).Replace("-", "")
- reader.BaseStream.Position += 14
- Dim lvi As New ListViewItem("&H" & Conversion.Hex(position))
- lvi.SubItems.AddRange(New String() {Convert.ToString(num3), Convert.ToString(num4)})
- Me.ListView1.Items.Add(lvi)
- num += 1
- num2 = (num2 + 1)
- Loop While (num2 <= &H167)
- reader.Close()
- input.Close()
- End Sub
hier ist mein Registrierungscode:
VB.NET-Quellcode
- Private Sub WriteFile(FilePath As String)
- Dim output As New FileStream(FilePath, FileMode.Open, FileAccess.Write, FileShare.Write)
- Dim writer As New BinaryWriter(output)
- writer.BaseStream.Position = &H278
- For Each item As ListViewItem In ListView1.Items
- writer.Write(item.SubItems(2).Text)
- Next
- writer.Close()
- output.Close()
- Interaction.MsgBox("Datei speichern.", MsgBoxStyle.Information, "")
- End Sub
Mein Problem ist, wenn ich meine Datei speichern und ich mit dem hxd es gibt mir so:
Quellcode
- A7 E6 0F 1A 3A 36 00 00 04 30 44 30 30 04 39 39 39 39 04 46 46 46 46 04 46 46 46 46 04 30 30 30 32 04 46 46 46 46 04 46 46 46 46 04 30 37 30 30 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 30 31 30 30 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 30 37 30 30 04 30 37 30 30 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 30 31 30 30 04 31 34 30 30 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 30 35 30 30 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 46 46 46 46 04 31 31 30 32 04 46 46 46 46
hier ist meine Originaldatei:
Quellcode
- A7 E6 0F 1A 3A 36 00 00 0D 00 01 02 00 00 00 00 00 00 00 00 7F FF FF FF A7 E6 0F 1B 66 0B D0 00 00 00 01 02 00 00 00 00 00 00 00 01 7F FF FF FF A7 E6 0F 1B 66 32 E0 00 FF FF 01 02 00 00 00 00 00 00 00 01 7F FF FF FF A7 98 87 C0 01 58 00 00 FF FF 01 02 00 00 00 00 00 00 00 05 7F FF FF FF D6 76 FB 51 19 E2 00 00 00 02 01 02 00 00 00 00 00 00 00 01 7F FF FF FF D6 76 FB 51 1F FC 80 00 FF FF 01 02 00 00 00 00 00 00 00 01 7F FF FF FF D6 76 FB 51 26 17 00 00 FF FF 01 02 00 00 00 00 00 00 00 01 7F FF FF FF 59 50 4E 25 9C 4D 80 00 07 00 01 02 00 00 00 00 00 00 00 02 00 00 00 00
Können Sie mir helfen dieses Problem in der Aufnahme hex beheben? danke