|
-
Jan 2nd, 2010, 02:28 PM
#4
PowerPoster
Re: Need help to find the logic and code using VB6
 Originally Posted by jemidiah
What you want should definitely be possible in VB6. It would probably take an experienced programmer an hour or two (to make sure they don't screw anything up, since editing binaries should be certainly correct).
Not quite true. If, as he says, the string to look for is "always found between 88 03 and 93 data" and is 3 bytes long, then a simple search and replace for chr(88,03,00,00,00,93) (shortened rather than adding 6 CHRs there :-)) would do the job perfectly without causing any problems to the binary...AS LONG AS the binary is then saved properly and in exactly the same format as the file was loaded...doable easy enough using byte arrays and writing as binary/random. Even if the values aren't always 00/00/00 between 88/03 and 93 it's still easy enough to do a scan through the data and make the changes.
Where binary files should be CAREFULLY handled is when they are executables and you are modifying the actual working code within them rather than resource data from them...in this case, it looks like resource data is being modified and should be perfectly safe.
Also, although it probably doesn't matter in this case, you would be careful if the binary executable requires a certain hash value (used in protected EXEs where they'll only run if the data matches the hash value) as any change of bytes within will definitely change the hash for the file...as neither hash value or working code are a part of this, it's a simple task to do :-P
 Originally Posted by duplexcom
and thus i expect help from professionals.
Assume he means "require" rather than "expect"...to expect help from people without paying them for it is going to get him nowhere :-)
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|