Posted June 8, 200619 yr 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, 200619 yr by BooGLE
September 17, 200717 yr &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
September 17, 200717 yr here is small sample i did long time ago.. hope it will be of help..patcher_by_ChupaChu.RAR
January 17, 200817 yr 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
Create an account or sign in to comment