Page 1 of 1

Resource wizard and strings in .rc-files

Posted: Wed Jan 20, 2010 1:45 pm
by Karamazov
I use C++ builder and have a string table in an .rc-file. I have tried the procedure in the FAQ (http://www.tsilang.com/delphiglobalizat ... faq.html#9), but can't get it to work. Have I understood things correctly if I can go on using the same ID:s as before. For example, if I start with:

LoadStr(ID_MYSTRING);

after the wizard has been run and I've implemented the workaround function:

LoadStr2(ID_MYSTRING);

and then I should be able to get hold of the correct translation?

Posted: Thu Jan 21, 2010 10:51 am
by isiticov
Hi Daniel,

We're trying to find a reason for that. The same sample project works just fine under Delphi but not under C++Builder. We're working on this right now...

Posted: Mon Jan 25, 2010 10:13 am
by isiticov
Hello Daniel,

We can't find a reason why under BCB 2007 the overload for resource loading doesn't work. :( In order to solve the problem you would need the following (which requires re-build of TsiLang package unfortunately):
1. Open siComp.Pas file.
2. Locate function SiLoadResString(ResStringRec: PResStringRec): string; function.
3. Copy it's declaration to the head of unit (right before the implementation keyword).
4. Re-build TsiLang_2007r package.
5. in your code in LoadStr2() function replace LoadResString() with siLoadResString();

Please let us know if this helped.

P.S. I've duplicated this by email.