myaddinter.idl
Upload User: weisheen
Upload Date: 2022-07-09
Package Size: 19390k
Code Size: 1k
Development Platform:

Visual C++

  1. // myaddinter.idl : IDL source for myaddinter.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (myaddinter.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(B5DC4864-4819-4C1F-9BBE-07CE523C5B42),
  10. helpstring("IMyfirst Interface"),
  11. pointer_default(unique)
  12. ]
  13. interface IMyfirst : IUnknown
  14. {
  15. [helpstring("method add")] HRESULT add([in] int a, [in] int b, [out] int* c);
  16. [helpstring("method asdf")] HRESULT sub([in] int a, [in] int b, [out] int* c);
  17. };
  18.     [  object,
  19.    uuid(B5DC4864-4819-4C1F-9BBE-07CE523C5B45),
  20.    helpstring("asdf")
  21.  ]
  22. interface IHello:IUnknown
  23. {
  24. [helpstring("string")] HRESULT hello([in] BSTR name,[out] BSTR* result);
  25. };
  26. [
  27. uuid(99CA5891-02B2-4439-B199-D6E1801242E3),
  28. version(1.0),
  29. helpstring("myaddinter 1.0 Type Library")
  30. ]
  31. library MYADDINTERLib
  32. {
  33. importlib("stdole32.tlb");
  34. importlib("stdole2.tlb");
  35. [
  36. uuid(5DBA4E48-6A44-4455-816C-A91491CAF625),
  37. helpstring("Myfirst Class")
  38. ]
  39. coclass Myfirst
  40. {
  41. [default] interface IMyfirst;
  42. };
  43. };