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

Visual C++

  1. // DemoVariant.idl : IDL source for DemoVariant.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (DemoVariant.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(653ECC4B-F61E-49B7-BF83-6D1740C943F4),
  10. dual,
  11. helpstring("IMyVariant Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface IMyVariant : IDispatch
  15. {
  16. [id(1), helpstring("method add")] HRESULT add([in] VARIANT a, [in] VARIANT b, [out] VARIANT* c);
  17. };
  18. [
  19. uuid(4A124107-0441-4718-88CD-310B12706055),
  20. version(1.0),
  21. helpstring("DemoVariant 1.0 Type Library")
  22. ]
  23. library DEMOVARIANTLib
  24. {
  25. importlib("stdole32.tlb");
  26. importlib("stdole2.tlb");
  27. [
  28. uuid(2F6A04F7-D42A-4E7B-93F1-45BF7683CEEF),
  29. helpstring("MyVariant Class")
  30. ]
  31. coclass MyVariant
  32. {
  33. [default] interface IMyVariant;
  34. };
  35. };