欢迎光临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