Page 1 of 1

Sil Editor problem

Posted: Tue Apr 08, 2003 3:10 pm
by Dadeur
Hello
I've modified a sil file with the editor and after
I've reloaded the file with the expert, Delphi can't
compile the project saying:
RLINK32: Unsupported 16bit resurce in file xxxxx.dfm
If I tray to open the form Delphi says:
Error creating form: Identifier expected on line xxx
on line xxx there is this line of code:
ValuesEx = {50617373776F72640150617373776F72640101}
Has the Editor corrupted my file?
How can I fix the problem?

Please help me
Thanks a lot

Posted: Wed Apr 09, 2003 6:47 am
by gaivans
Hello,

We will fix this issue in the next version release. Please, modify the unit siComp.pas as follows:

In the
procedure TsiCustomLang.LoadExtendedFromFile(const FileName: Tstring; const CanRewrite: Boolean);

Before the line:
EI.PropertyType := TTypeKind(GetEnumValue(TypeInfo(TTypeKind), S1));

Add the line:
if AnsiPos(delim, S1) <> 0 then Delete(S1, AnsiPos(delim, S1), MaxWord); // 5.2.3

After that, re-build the package and load the translations from SIL file.

Posted: Wed Apr 09, 2003 7:32 am
by Dadeur
Hi gaivans, thanks for your kind reply.
This will surely fix siComp but my actual problem is to fix
the corrupted files because I was in a hurry and I missed
the backup of my project ... :oops:

Posted: Wed Apr 09, 2003 7:49 am
by gaivans
Hello,

This will help to restore the corrupted files:

1. Open the corrupted .dfm file in a text editor, i.e., in Notepad.exe.
2. Select File|Replace..., and replace:
PropertyType =
with:
PropertyType = tkInteger
3. Press "Replace All".
4. Save the file.

After that the .dfm file could be opened in the IDE.

Posted: Wed Apr 09, 2003 8:05 am
by Dadeur
Yeah ! it works !
I really appreciated your help gaivans.
You saved my life :D