SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sil Editor problem

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
Dadeur



Joined: 04 Apr 2003
Posts: 5

PostPosted: Tue Apr 08, 2003 3:10 pm    Post subject: Sil Editor problem Reply with quote

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
Back to top
View user's profile Send private message
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Wed Apr 09, 2003 6:47 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Dadeur



Joined: 04 Apr 2003
Posts: 5

PostPosted: Wed Apr 09, 2003 7:32 am    Post subject: Reply with quote

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 ... Embarassed
Back to top
View user's profile Send private message
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Wed Apr 09, 2003 7:49 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Dadeur



Joined: 04 Apr 2003
Posts: 5

PostPosted: Wed Apr 09, 2003 8:05 am    Post subject: Reply with quote

Yeah ! it works !
I really appreciated your help gaivans.
You saved my life Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group