0

I want to modify a simple vb app(.exe), but I have no source code about it. The app has a button and a textbox, when the button clicked, the textbox will be set with "7:00" and then down to "0:00".

Now, I want to do a small modification to this app: when the button clicked, don't set textbox with "7:00" but with "5:00".

Can anyone tell me how to implement it?

4
  • 2
    If it's that simple, you might as well just re-implement it yourself. Then you'll have the source code. Commented Feb 24, 2010 at 22:33
  • My app is VB, not VB.Net. But i can not re-implement it, because this app has some other forms beside i just mentioned:( Commented Feb 24, 2010 at 23:16
  • I think that Anon meant for you to re-implement the entire project, not just the one form. Commented Feb 25, 2010 at 20:01
  • Oh.... the whole project is somewhat complex to re-implement:( Commented Feb 26, 2010 at 2:31

2 Answers 2

1
  1. Fire up your favourite hex editor
  2. Look for the string 7:00 in the .exe file
  3. Replace it with 5:00.
  4. Hope for the best.
Sign up to request clarification or add additional context in comments.

4 Comments

I'd also try a text search for "7:00" on your hard drive. It could be in an ini file. Also check around the registry too.
Thanks for your help i have search for "7:00" in hex and harddrive, but i can not find it
Did you look for UTF-16 strings too?
I have search for the string in the hex editor, but i can not found at all. i am afraid of that maybe the app use a int value to record time and convert it to datatime sting and show it on textbox:(
0

Use reflector against the .exe file to get to the source code. Copy and paste into class files in new vb project. Confirm the app still functions as the original. Now make your change.

This assumes the source code hasn't been obfuscated.

3 Comments

can reflector give me source code, i have tried some similiar tools, but those tool can only give me some froms and icons, but no source code:(
I believe Reflector is for .NET assemblies. I'm not aware of a version that works on 'classic' VB.
The question said winforms app. I automatically assumed .NET

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.