siLang data mod initialization
Posted: Thu Mar 15, 2007 9:53 pm
We have placed both both the siLangDispatcher and siLang components in an otherwise empty data mod called dmInternational. It is auto-created before any other form. However, several of our non-visual units reference GetTextordefault and MessageDlg and they have initialization code sections. This combination generates a 216 error.
I have worked around this by having dmInternational create itself in its own initialization code section and moving it to the top of the uses list in the DPR file after the Borland units and before any of our units.
Is there a more elegant solution?
Thanks again
I have worked around this by having dmInternational create itself in its own initialization code section and moving it to the top of the uses list in the DPR file after the Borland units and before any of our units.
Is there a more elegant solution?
Thanks again