通过金山词霸获得单词音标和解释的方法

欢迎光临http://www.5xiuxiu.cn  淘宝购物导航 源码开源免费下载

 

 我使用的是金山词霸2003,C#语言,在visual studio 2008的工程中添加引用--》com ---》kEngine

 

词霸的com接口如下:

// Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: KSEngine.dll

[
 uuid(4A548BD4-98D6-4FCD-9A3C-79894A606FD1),
 version(1.0),
 helpstring("KSEngine 1.0 Type Library"),
 custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 83951780),
 custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 1086159069)

]
library KSENGINELib
{
   // TLib :     // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
   importlib("stdole2.tlb");

   // Forward declare all types defined in this typelib
   interface IDictionary;
   interface IDictionaries;
   interface IDictionaryEx;
   interface IWord;
   interface IExplanation;
   interface IBlock;

   [
     uuid(69B940A9-FA3A-4F8F-B64E-98BBFA7B8E99),
     helpstring("Dictionary Class")
   ]
   coclass Dictionary {
       [default] interface IDictionary;
   };

   [
     odl,
     uuid(71FA90AF-3ECB-496D-A89D-7EB23C8A0D98),
     helpstring("IDictionary Interface"),
     dual,
     oleautomation
   ]
   interface IDictionary : IDispatch {
       [id(0x00000001), propget, helpstring("property SrcLanguageId")]
       HRESULT SrcLanguageId([out, retval] long* pVal);
       [id(0x00000001), propput, helpstring("property SrcLanguageId")]
       HRESULT SrcLanguageId([in] long pVal);
       [id(0x00000002), propget, helpstring("property DestLanguageId")]
       HRESULT DestLanguageId([out, retval] long* pVal);
       [id(0x00000002), propput, helpstring("property DestLanguageId")]
       HRESULT DestLanguageId([in] long pVal);
       [id(0x00000003), helpstring("method Lookup")]
       HRESULT Lookup(
                       BSTR bstrWord,
                       long lFlag);
       [id(0x00000004), helpstring("method GetTitle")]
       HRESULT GetTitle([out, retval] BSTR* bstrTitle);
       [id(0x00000005), helpstring("method GetExplain")]
       HRESULT GetExplain([out, retval] BSTR* bstrEx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值