Guest BooGLE Posted June 8, 2006 Posted June 8, 2006 (edited) 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 #1Put #1, &H3BA1E, "EB" Format As: "Put #1, <offset>, <byte>Close #1But, 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 June 8, 2006 by BooGLE
SUB Z3R0 Posted June 8, 2006 Posted June 8, 2006 If you upload your file here ... we can help you easier !
Departure Posted September 17, 2007 Posted September 17, 2007 &H = hex valueI 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
ChupaChu Posted September 17, 2007 Posted September 17, 2007 here is small sample i did long time ago.. hope it will be of help..patcher_by_ChupaChu.RAR
DrPepUr Posted January 17, 2008 Posted January 17, 2008 Try ThisPrivate Sub Command1_Click()Dim sFilesFile = "C:\test.txt"PatchBytes sFile, 2, &HFFEnd SubPublic Function PatchBytes(xFile, sOffSet, sByte As Byte) Open xFile For Binary As #1 Put #1, sOffSet, sByte Close #1End Function
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now