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.
Dictionary manager automation
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:
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.
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: Select all
function AddTranslation(const BaseLang, ActLang, BaseItem,
ActItem: WideString; CaseSensitive,
SkipAmresand: WordBool): WordBool; safecall;
IndexOfLang wasn't changed so it must work just fine.
Please let us know if this helps.
Best regards,
Igor Siticov.
Igor Siticov.
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.
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.