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 

Dictionary manager automation

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



Joined: 17 Feb 2005
Posts: 5

PostPosted: Tue Nov 13, 2007 4:42 pm    Post subject: Dictionary manager automation Reply with quote

I'm trying to automate dictionary manager using C++ COM wrappers. While it allows creation of the new ditionary file, adding\removing languages, query language names like GetLanguageNames, it fails on certain calls to interface methods, for instance,
any attempt to call IndexOfLang or AddTranslation methods result in HRESULT = C0000005 error.
I use SiComponents ver. 6.2, SilEditor says SiComponents suite ver. is 6.2.2, but Dictionary manager says SiComponents suite 6.1, ver. 2.3.0.1
Dicitonary automation wrappers were generated and used in Borland C++ Builder 6 SP4.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2118

PostPosted: Tue Nov 13, 2007 5:26 pm    Post subject: Reply with quote

Hello,

First at all, please download and use the latest version of Dictionary Manager (app. version 2.3.2.6 product version 6.2.2).
In the recent version there were changes in some methods of Dcitionary Manager. AddTranslation() chanfed to:
Code:
function AddTranslation(const BaseLang, ActLang, BaseItem,
      ActItem: WideString; CaseSensitive,
      SkipAmresand: WordBool): WordBool; safecall;

as you can see 2 new paramteres added.
IndexOfLang wasn't changed so it must work just fine.
Please let us know if this helps.
Back to top
View user's profile Send private message
pupkinzon



Joined: 17 Feb 2005
Posts: 5

PostPosted: Tue Nov 13, 2007 6:57 pm    Post subject: Reply with quote

As far as I can see from CB6 generated wrappers, AddTranslation prototype corresponds to one that you described. So, it seems that suite version reported in dictionary manager "About" is wrong somehow.
What is more interesting, wrappers generated with MS VC #import directive are working fine. So, the problem may be related to outdated CB6.

OK, the CB6 WideString class has bug which occured in certain conditions and affected interface mwthod calls. It has nothing to do with your automation interface. The topic may be closed. Thank you for quick response.
Back to top
View user's profile Send private message
pupkinzon



Joined: 17 Feb 2005
Posts: 5

PostPosted: Wed Dec 05, 2007 12:09 pm    Post subject: Reply with quote

Where can I find docs covering automation interface parameters? So far, I would like to know what means bool value returned from AddTranslation call, because I cannot figure it out... Translations get added to dictionary all right, while return value is VARIANT_FALSE.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2118

PostPosted: Wed Dec 05, 2007 3:09 pm    Post subject: Reply with quote

There is error in return value for this method. It always return FALSE. Sorry.
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