Page 1 of 1

string tables

Posted: Tue Dec 14, 2004 11:14 am
by pablo04
Hello
I'm using c++ builder 6 and the latest version of siLang. I traslate string tables coded into rc files. Everything works fine unil my project is without dll with ciLang. Then always read resource language. What is wrong?

Posted: Tue Dec 14, 2004 12:20 pm
by isiticov
Do you mean that resource strings used in DLL are not translated?

Posted: Tue Dec 14, 2004 12:46 pm
by pablo04
Everything is translated but when I change language propertis to other always display ResourceLanguage

Posted: Tue Dec 14, 2004 1:22 pm
by isiticov
No, I'm sorry. I've meant the following: when you retrieve resource string from DLL you always receive the original value not translation, right?

Posted: Wed Dec 15, 2004 7:09 am
by pablo04
The problem is only when siLang component is BOTH: in application and outside dll. Then, when I retrive resource
string from Application I always receive the original value not translation. When I use application without
dll everything works. I have got tranlate resource strings from application. I use the function as follows:
extern Package AnsiString __fastcall LoadStr2(int Ident)
{
ResStringRec ResRec;
ResRec.module = (long*)&HInstance;
ResRec.ident = Ident;
return (LoadResString(&ResRec));

Posted: Thu Dec 16, 2004 7:21 am
by isiticov
Does TsiLang used in DLL have HandleResourceStrings property set to True? Be sure that only TsiLang in main application has this set to True.

Posted: Thu Dec 16, 2004 10:44 am
by pablo04
Unfortunately only main application has this value set to true and still doesn't work

Posted: Thu Dec 16, 2004 4:10 pm
by isiticov
Could you please create sample projects and send them to us? Then we will be able to investigate the situation detaily.
Thanks.