Sponsor for PC Pals Forum

Author Topic: modifying exe files  (Read 5508 times)

Offline daveeb

  • Loyal Member
  • *****
  • Posts: 4216
Re:modifying exe files
« Reply #15 on: September 03, 2003, 18:50 »

does the program need to be kept the same, or can a new GUI be used? You could always try and find a C/C++ programmer to re-write the application, only finding one will be the problem  8)


yup the program doesnt need changing at all apart from the port that the data arrives on.  it currently can only work with data arriving on com1 which is acting up, we want it to look at com2.  of course we could just load the software onto a different pc but we havent got a spare one. they're too strapped for cash to buy one and i think getting a programmer in would give the accountant a heart attack.   :o


Offline Dack

  • Established Member
  • ****
  • Posts: 831
Re:modifying exe files
« Reply #16 on: September 03, 2003, 19:19 »
If you don't mind me looking at it - I could probably change it for you.
hey promised the earth! Then delivered mud.
Technically it did meet the spec.

Offline daveeb

  • Loyal Member
  • *****
  • Posts: 4216
Re:modifying exe files
« Reply #17 on: September 03, 2003, 19:33 »
thanks for the offer dack, i'll see what they say, although they tend to be a bit anal*y retentive about official secrets etc, like there's anything to be gained from this crappy old program...NOT.   :)

Offline Dack

  • Established Member
  • ****
  • Posts: 831
Re:modifying exe files
« Reply #18 on: September 03, 2003, 19:41 »
No worries - if its as officialy secret as you say then there may still not be a problem ;) (I'm sure Sean would be able to tell you who I work for)

Usually a simple binary hex editor (FRHED is a good one) would be enough to search and replace the COM1 with COM2 messages. That is if they are stored in text format - if they are binary versions then you end up changing values to point to the correct address.

Alternatively I take it you've tried doing a "NAMEOFPROGRAM /?" in case the programmer left in a "which port to run on" function from the command line.
hey promised the earth! Then delivered mud.
Technically it did meet the spec.

Offline WhiteDevil

  • Regular Member
  • **
  • Posts: 170
Re:modifying exe files
« Reply #19 on: September 03, 2003, 20:21 »
i think getting a programmer in would give the accountant a heart attack.


im learning C++ now, if only i were a bit more advanced id write it for nothing...
dam Boyle
Owner, Director
www.Severn-Computers.com

Adept

  • Guest
Re:modifying exe files
« Reply #20 on: September 03, 2003, 20:28 »

No worries - if its as officialy secret as you say then there may still not be a problem ;) (I'm sure Sean would be able to tell you who I work for)


If I tell him, do I get to kill him afterwards Dack? :lol: ;D ;D

Offline Dack

  • Established Member
  • ****
  • Posts: 831
Re:modifying exe files
« Reply #21 on: September 03, 2003, 20:47 »
Only via alcohol poisoning ;)

BTW check your mail and try and explain the beard.
hey promised the earth! Then delivered mud.
Technically it did meet the spec.

Offline lobo

  • Full Member
  • ***
  • Posts: 342
    • http://www.burnleywood.com
Re:modifying exe files
« Reply #22 on: September 04, 2003, 21:58 »
@daveeb
Use this program eXeScope to modify the .exe file
http://hp.vector.co.jp/authors/VA003525/Eindex.htm


Do you want to customize an application ?  For example,
     Change font,
     Change menu,
     Change size or layout of dialog,
     Change Icon,
     etc.,
   but do you think that it is impossible because you have not source files ?
   eXeScope is a resource editor which can edit executable files directly.
   It can analyze and rewrite resources of EXE, DLL, OCX, etc. without source
   files. Almost all resources, that is, Menu, Dialog, String, MessageTable,
   Icon, Cursor, Bitmap, Accelerator, VersionInfo, Delphi Form, WAVE, MIDI,
   AVI, GIF, HTML, JPEG, ToolBar are supported.
   Moreover, eXeScope can analyze and display exported/imported functions
   and TypeLibrary in DLL, OCX, etc.

Brian ;D

url=http://pc-pals.com/userpics/loboPC.swf]Flash[/url]

All the survivors of the war had reached their homes and so put the perils of battle and the sea behind them.
Homer   , The Odyssey, line 1

Adept

  • Guest
Re:modifying exe files
« Reply #23 on: September 04, 2003, 22:13 »
Brian, that program looks interesting, but it looks like it is written with Windows .exe programs in mind not DOS ones. Does it mention whether it will handle a DOS .exe file at all?

Offline daveeb

  • Loyal Member
  • *****
  • Posts: 4216
Re:modifying exe files
« Reply #24 on: September 04, 2003, 22:25 »
as i told dack, we've temporarily solved the problem with a different pc that has a fully functioning com1 port, however its a very temporary measure so i might well resurrect this one again soon.  thanks for all the interest and input chaps and chapesses.    ;)

Offline Dack

  • Established Member
  • ****
  • Posts: 831
Re:modifying exe files
« Reply #25 on: September 05, 2003, 00:14 »

Brian, that program looks interesting, but it looks like it is written with Windows .exe programs in mind not DOS ones. Does it mention whether it will handle a DOS .exe file at all?



Exescope is quite cute but only really allows the editing of resources for windows apps (though it does it very well - I've used it in conjuction with DeDe (a Delphi Disasembler)). A similar thing can 'almost' be achieved using Visual C++ :) as you can load executables and 'borrow' the resources from them using the default installation (and then edit the bin file to activate buttons etc. but I digress ;) ).


For anyone interested in rev-enging then do a google search for Fravia.
hey promised the earth! Then delivered mud.
Technically it did meet the spec.


Show unread posts since last visit.
Sponsor for PC Pals Forum