SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TsiLang Expert: Unable to obtain interface of form module!

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
Malcolm



Joined: 21 Jan 2003
Posts: 88
Location: Scotland

PostPosted: Sun Feb 25, 2018 12:38 am    Post subject: TsiLang Expert: Unable to obtain interface of form module! Reply with quote

Delphi Tokyo 10.2.2 and also Berlin 10.1.
Using the TsiLang Expert to double-click on one Form in a small VCL project, I am getting the following error message:

Unable to obtain the interface of form module! Please check your project source.

I have tried comparing the form's source with other working forms and have not found the cause. Can you suggest what I am looking for?

That form can be 'translated' as expected by double-clicking on the TsiLangRT component on it. The project builds and runs as expected under both IDEs .. but in both IDEs the Expert raises the same 'error'.

It must be something silly, but I just can't see it. Embarassed
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2127

PostPosted: Sun Feb 25, 2018 2:52 am    Post subject: Reply with quote

The most possible reason for that is missing {FormName} in PROJECT'S source (DPR). After each unit declaration with form there is {FormName} following but sometimes (usually when you add form to project manually) this is missing and it is not possible to get form's interface through IDE (I don't know why but IDE fails in this case).
Just check your DPR file for this case.
Back to top
View user's profile Send private message
Malcolm



Joined: 21 Jan 2003
Posts: 88
Location: Scotland

PostPosted: Sun Feb 25, 2018 8:27 am    Post subject: Reply with quote

Thanks, Igor, that was it.

Actually, in the .DPR uses clause the {form name} was present but incorrect!

I must have renamed the form at some point and the DPR did not update the {form name} for some reason.

If that error is specific to this issue (missing or incorrect form name in DPR), would it be possible to edit the message a little? For example to include "(DPR)" and perhaps the {form name} value that was not found.

But this is probably a rare issue. Anyway, I have added it to my 'Cheat Sheet'. Thank you for your quick reply. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group