Dictionary.idl
资源名称:COM 原理与应用.rar [点击查看]
上传用户:biuytresa
上传日期:2007-12-07
资源大小:721k
文件大小:1k
源码类别:
DNA
开发平台:
Visual C++
- import "unknwn.idl";
- #define MaxWordLength 32
- [
- object,
- uuid(54BF6568-1007-11D1-B0AA-444553540000),
- pointer_default(unique)
- ]
- interface IDictionary : IUnknown
- {
- HRESULT Initialize();
- HRESULT LoadLibrary([in, string] WCHAR *pFilename);
- HRESULT InsertWord([in, string] WCHAR *pWord, [in, string] WCHAR *pWordUsingOtherLang);
- HRESULT DeleteWord([in, string] WCHAR *pWord);
- HRESULT LookupWord([in, string] WCHAR *pWord, [out] WCHAR pWordOut[MaxWordLength]);
- HRESULT RestoreLibrary([in, string] WCHAR *pFilename);
- HRESULT FreeLibrary();
- };
- [
- object,
- uuid(54BF6569-1007-11D1-B0AA-444553540000),
- pointer_default(unique)
- ]
- interface ISpellCheck : IUnknown
- {
- HRESULT CheckWord([in, string] WCHAR *pWord, [out] WCHAR pWordOut[MaxWordLength]);
- };