Topic: Block shift (1 of 2), Read 22 times
Conf: Basic editing, Block operations
From: amjad hanesh
Date: Friday, November 17, 2006 07:58 AM

Hi all,

I am trying to translate a program to my language. i am using Vedit to edit the EXE file, but i can't run the EXE file after i finish editing. please note that i replace the existing string with a translated string that is few characters longer. i think it causes a shift in the EXE file blocks. how can i resolve this. thank you tons

 


Topic: Re: Block shift (2 of 2), Read 21 times
Conf: Basic editing, Block operations
From: Ted Green
Date: Friday, November 17, 2006 08:25 AM

At 07:59 AM 11/17/2006, you wrote:
>I am trying to translate a program to my language. i am using Vedit to edit the EXE file, but i can't run the EXE file after i finish editing. please note that i replace the existing string with a translated string that is few characters longer. i think it causes a shift in the EXE file blocks. how can i resolve this. thank you tons

You CANNOT change the size of the .exe file. Your translated string must be the same size. Often it can be shorter if you pad it with nulls.
Replacing with a longer string is theoretically impossible.

Ted.


Ted.
-------------------------------------------------------------------------
Ted Green (ted@...) Greenview Data, Inc.
Web: www.... Fax: 734-996-1308 PO Box 1586, Ann Arbor, MI 48106
Tel: (734) 996-1300 Desk: 734-369-3550 VEDIT - Text/Data/Binary Editor
-------------------------------------------------------------------------
www.SpamStopsHere.com ranked #1 in accuracy by Network Computing Magazine