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

Visual C++

  1. // DemoError.idl : IDL source for DemoError.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (DemoError.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(E86D76CE-1440-4452-82A8-C4CFEE422106),
  10. dual,
  11. helpstring("IMyAbc Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface IMyAbc : IDispatch
  15. {
  16. [id(1), helpstring("method div")] HRESULT div([in] int a, [in] int b, [out] int* c);
  17. };
  18. [
  19. uuid(6D015729-5AAD-438D-BB94-36F098E715C9),
  20. version(1.0),
  21. helpstring("DemoError 1.0 Type Library")
  22. ]
  23. library DEMOERRORLib
  24. {
  25. importlib("stdole32.tlb");
  26. importlib("stdole2.tlb");
  27. [
  28. uuid(0920F82F-5858-4705-91B3-EF95216D0AFF),
  29. helpstring("MyAbc Class")
  30. ]
  31. coclass MyAbc
  32. {
  33. [default] interface IMyAbc;
  34. };
  35. };