Guest User

Untitled

a guest
Jul 19th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1. // TestServer.idl : IDL source for TestServer.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (TestServer.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.     [
  10.         object,
  11.         uuid(BB5DD9CF-CB30-40A6-8D59-925ACFF4DAA4),
  12.         dual,
  13.         helpstring("IPippo Interface"),
  14.         pointer_default(unique)
  15.     ]
  16.     interface IPippo : IDispatch
  17.     {      
  18.         [id(1), helpstring("method Method1")] HRESULT Method1([out, retval] IPippo **val);
  19.         [propget, id(2), helpstring("property MyProp1")] HRESULT MyProp1([out, retval] long *pVal);
  20.     };
  21.  
  22.     [
  23.         uuid(1728B2B9-B2EE-4657-8181-AB7B38AB847A),
  24.         version(1.1),
  25.         helpstring("TestServer 1.1 Type Library")
  26.     ]
  27.     library TESTSERVERLib
  28.     {
  29.         importlib("stdole32.tlb");
  30.         importlib("stdole2.tlb");
  31.         importlib("msado15.dll");
  32.         [
  33.             uuid(47D38FBE-C5A2-4C9C-8EF4-4AFD822AB26D),
  34.             helpstring("Pippo Class")
  35.         ]
  36.         coclass Pippo
  37.         {
  38.             [default] interface IPippo;
  39.         };
  40.     };
Advertisement
Add Comment
Please, Sign In to add comment