Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Patching A File Using Visual Basic 6

Featured Replies

Posted

Hey Guys,

I am having some trouble with patching a file in vb6.

I use the following code to try and patch the file:

Open "File.exe" For Binary As #1

Put #1, &H3BA1E, "EB" Format As: "Put #1, <offset>, <byte>

Close #1

But, This isnt working! I've also tried reversing the orders of things, but it just seems to screw up my file.

I also would like to know why "&H" is put before the offset?

Any help on this would be appriciated.

Best Regards,

BooGLE

Edited by BooGLE

If you upload your file here ... we can help you easier !

^^ that's it.

  • 1 year later...

&H = hex value

I have made Vb6 exe patchers and vb6 memory patcher/loaders before, Its an old topic but if you still need help im sure I could write a sample code for you

here is small sample i did long time ago.. hope it will be of help..

patcher_by_ChupaChu.RAR

  • 3 months later...

Try This

Private Sub Command1_Click()

Dim sFile

sFile = "C:\test.txt"

PatchBytes sFile, 2, &HFF

End Sub

Public Function PatchBytes(xFile, sOffSet, sByte As Byte)

Open xFile For Binary As #1

Put #1, sOffSet, sByte

Close #1

End Function

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.