siLang in exe and dll

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Hermit
Posts: 8
Joined: Wed May 12, 2004 8:46 am
Location: Poland
Contact:

siLang in exe and dll

Post 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.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Post Reply