Dictionary.idl
上传用户:biuytresa
上传日期:2007-12-07
资源大小:721k
文件大小:1k
源码类别:

DNA

开发平台:

Visual C++

  1. import "unknwn.idl";
  2. #define MaxWordLength 32
  3. [
  4.     object, 
  5.     uuid(54BF6568-1007-11D1-B0AA-444553540000),
  6.     pointer_default(unique)
  7. interface IDictionary : IUnknown
  8. {   
  9. HRESULT Initialize();
  10. HRESULT LoadLibrary([in, string] WCHAR *pFilename);
  11. HRESULT InsertWord([in, string] WCHAR *pWord, [in, string] WCHAR *pWordUsingOtherLang);
  12. HRESULT DeleteWord([in, string] WCHAR *pWord);
  13. HRESULT LookupWord([in, string] WCHAR *pWord, [out] WCHAR pWordOut[MaxWordLength]);
  14. HRESULT RestoreLibrary([in, string] WCHAR *pFilename);
  15. HRESULT FreeLibrary();
  16. };
  17. [
  18.     object, 
  19.     uuid(54BF6569-1007-11D1-B0AA-444553540000),
  20.     pointer_default(unique)
  21. interface ISpellCheck : IUnknown
  22. {   
  23. HRESULT CheckWord([in, string] WCHAR *pWord, [out] WCHAR pWordOut[MaxWordLength]);
  24. };