Page 1 of 1

siLang in exe and dll

Posted: Fri Nov 19, 2004 9:20 am
by Hermit
Is there any possibilities to link project with dll (static) which both have been translated (siLang componet has been used)?

The problem becomes when I would like to link runtime packeges into the exe - after running file (when first form is created) exception 'Class Tsilang not found" is shown.

After checked 'build with runtime packages' program works but many external library must be added and installed additionally.

I have latest version of silang and Bc++ Builder 6.

Posted: Fri Nov 19, 2004 11:22 am
by isiticov
Hello,
This looks like you're referencing to TsiLangDispatcher of EXE from DLL. But EXE and DLL have different RTTI spaces and as result same classes recognized as different. So to avoid this just use in DLL and EXE separate dispatchers and when calling DLL just pass there the active language to use.